#AF59DC#AF59DC

#AF59DC is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.3% C 0.201 H 312.3°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#AF59DC
RGBrgb(175, 89, 220)
HSLhsl(279, 65%, 61%)
HSVhsv(279, 60%, 86%)
CMYKcmyk(20.5%, 59.5%, 0%, 13.7%)
CIE-LABlab(53.41, 56.32, -52.96)
CIE-LCHlch(53.41, 77.31, 316.76°)
OKLaboklab(62.25% 0.1353 -0.1488)
OKLCHoklch(62.25% 0.201 312.3)
XYZxyz(34.1675, 21.4269, 70.0322)
Luminance0.2143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF59DC #86DC59
analogous
#6D59DC #AF59DC #DC59C8
triadic
#AF59DC #DCAF59 #59DCAF
tetradic
#AF59DC #DC6D59 #86DC59 #59C8DC
square
#AF59DC #DC6D59 #86DC59 #59C8DC
split-complementary
#AF59DC #C8DC59 #59DC6D
monochromatic
#70209A #952BCD #AF59DC #C78CE7 #E0BEF1

Accessibility & contrast

On white

3.97
#AF59DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#AF59DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF59DC
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF59DC#FFFFFF#000000##000000
##AF59DC1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7BE0
Deuteranopia (green-blind)
#5081D9
Tritanopia (blue-blind)
#AA7192
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af59dc;
/* rgb */ color: rgb(175, 89, 220);
/* oklch */ color: oklch(62.3% 0.201 312.3);
Tailwind
colors: {
  custom: {
    50: '#ca8ce7',
    500: '#af59dc',
    950: '#000000',
  },
}
SCSS
$custom: #af59dc;
$custom-light: #ca8ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#af59dc",
  "rgb": {
    "r": 175,
    "g": 89,
    "b": 220
  },
  "hsl": {
    "h": 279.389,
    "s": 65.174,
    "l": 60.588
  },
  "oklch": {
    "l": 0.6225,
    "c": 0.20109,
    "h": 312.3
  },
  "luminance": 0.21426
}

Semantic roles & 50–950 ramp

primary
#AF59DC
secondary
#C1E1AF
accent
#CD1857
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF59DC

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

Preview Lab → · Contrast checker → · Palette generator →

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