#AF59EB#AF59EB

#AF59EB is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.2% C 0.217 H 308.6°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF59EB
RGBrgb(175, 89, 235)
HSLhsl(275, 78%, 64%)
HSVhsv(275, 62%, 92%)
CMYKcmyk(25.5%, 62.1%, 0%, 7.8%)
CIE-LABlab(54.30, 59.57, -59.99)
CIE-LCHlch(54.30, 84.54, 314.80°)
OKLaboklab(63.18% 0.135 -0.1694)
OKLCHoklch(63.18% 0.217 308.6)
XYZxyz(36.2440, 22.2574, 80.9679)
Luminance0.2226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF59EB #95EB59
analogous
#6659EB #AF59EB #EB59DE
triadic
#AF59EB #EBAF59 #59EBAF
tetradic
#AF59EB #EB6659 #95EB59 #59DEEB
square
#AF59EB #EB6659 #95EB59 #59DEEB
split-complementary
#AF59EB #DEEB59 #59EB66
monochromatic
#7316B4 #9522E4 #AF59EB #C990F2 #E4C6F8

Accessibility & contrast

On white

3.85
#AF59EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#AF59EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF59EB
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF59EB#FFFFFF#000000##000000
##AF59EB1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#017EF0
Deuteranopia (green-blind)
#4283E8
Tritanopia (blue-blind)
#A6769A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af59eb;
/* rgb */ color: rgb(175, 89, 235);
/* oklch */ color: oklch(63.2% 0.217 308.6);
Tailwind
colors: {
  custom: {
    50: '#cb8cf2',
    500: '#af59eb',
    950: '#000000',
  },
}
SCSS
$custom: #af59eb;
$custom-light: #cb8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af59eb",
  "rgb": {
    "r": 175,
    "g": 89,
    "b": 235
  },
  "hsl": {
    "h": 275.342,
    "s": 78.495,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63177,
    "c": 0.21661,
    "h": 308.6
  },
  "luminance": 0.22257
}

Semantic roles & 50–950 ramp

primary
#AF59EB
secondary
#CBEAB6
accent
#DB0B60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF59EB

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AF59EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva