Hex to HSL
HSL is convenient but not perceptual — useful to see next to the OKLCH values.
#a855f7
A light, vivid magenta. Closest CSS name: `mediumorchid`.
- Hex
- #a855f7
- RGB
- rgb(168 85 247)
- HSL
- hsl(270.7 91% 65.1%)
- OKLCH
- oklch(0.627 0.233 303.9)
- CMYK
- cmyk(31.98% 65.59% 0% 3.14%)
- Nearest name
- mediumorchid
Readable text
White text
3.96:1
Black text
5.31:1
Use black text. Passes AA for normal text: yes · AAA: no · AA for large text: yes
Worth knowing
Worth knowing
10 derived colours are outside sRGB
Rotating hue at this chroma produces colours a normal screen cannot display, so they have been clipped to the nearest sRGB colour. The hex values shown are therefore not exactly what the maths asked for, and the harmony will look slightly less even than it should.
Fix: Lower the chroma of the input colour before deriving harmonies, or accept the clipped values as an approximation.
Worth knowing
A mid-tone: neither white nor black text reaches AAA
The best this colour manages is 5.31:1 — against black text. That clears WCAG AA for normal text (4.5:1) but not AAA (7:1). Mid-tones look fine in a mockup and then fail review, because both text colours are only just adequate.
Fix: Use black text on it, and move the lightness further from the middle if the text has to meet AAA.
Note
CMYK here is a naive conversion
CMYK has no fixed meaning without an output profile — the same numbers print differently on different presses and papers. The value shown is the standard arithmetic conversion, not a colour-managed one.
Fix: For print work, convert in software with the press profile applied.
Complementary — the opposite hue
complementary
#6d9b00
clipped to sRGB
Analogous — neighbouring hues
analogous −30°
#6370ff
clipped to sRGB
analogous +30°
#d53cc1
Triadic — evenly spaced
triadic +120°
#e25800
clipped to sRGB
triadic +240°
#00b098
clipped to sRGB
Split-complementary — softer opposites
split-complementary +150°
#b77e00
clipped to sRGB
split-complementary +210°
#00ad3b
clipped to sRGB
Monochromatic — one hue, five lightnesses
lightness 0.25
#3d0078
clipped to sRGB
lightness 0.4
#6500a9
clipped to sRGB
lightness 0.55
#913adc
lightness 0.7
#bf6eff
clipped to sRGB
lightness 0.85
#efa0ff
clipped to sRGB
Try your own colour
Paste one on the home page — you can also pick a colour straight out of a photo there. This page is available as markdown.