#AF59EC#AF59EC

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

Color values

HEX#AF59EC
RGBrgb(175, 89, 236)
HSLhsl(275, 79%, 64%)
HSVhsv(275, 62%, 93%)
CMYKcmyk(25.8%, 62.3%, 0%, 7.5%)
CIE-LABlab(54.36, 59.78, -60.45)
CIE-LCHlch(54.36, 85.02, 314.68°)
OKLaboklab(63.24% 0.135 -0.1707)
OKLCHoklch(63.24% 0.218 308.3)
XYZxyz(36.3888, 22.3154, 81.7310)
Luminance0.2231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF59EC #96EC59
analogous
#6559EC #AF59EC #EC59DF
triadic
#AF59EC #ECAF59 #59ECAF
tetradic
#AF59EC #EC6559 #96EC59 #59DFEC
square
#AF59EC #EC6559 #96EC59 #59DFEC
split-complementary
#AF59EC #DFEC59 #59EC65
monochromatic
#7315B6 #9522E6 #AF59EC #C990F2 #E4C7F9

Accessibility & contrast

On white

3.84
#AF59EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#AF59EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF59EC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF59EC#FFFFFF#000000##000000
##AF59EC1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF1
Deuteranopia (green-blind)
#4183E9
Tritanopia (blue-blind)
#A6779B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af59ec;
/* rgb */ color: rgb(175, 89, 236);
/* oklch */ color: oklch(63.2% 0.218 308.3);
Tailwind
colors: {
  custom: {
    50: '#cb8df3',
    500: '#af59ec',
    950: '#000000',
  },
}
SCSS
$custom: #af59ec;
$custom-light: #cb8df3;
$custom-dark: #000000;
JSON
{
  "hex": "#af59ec",
  "rgb": {
    "r": 175,
    "g": 89,
    "b": 236
  },
  "hsl": {
    "h": 275.102,
    "s": 79.459,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63241,
    "c": 0.21765,
    "h": 308.3
  },
  "luminance": 0.22315
}

Semantic roles & 50–950 ramp

primary
#AF59EC
secondary
#CCEAB6
accent
#DC0A61
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF59EC

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

Preview Lab → · Contrast checker → · Palette generator →

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