#AF59CA#AF59CA

#AF59CA is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.2% C 0.183 H 317.5°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AF59CA
RGBrgb(175, 89, 202)
HSLhsl(286, 52%, 57%)
HSVhsv(286, 56%, 79%)
CMYKcmyk(13.4%, 55.9%, 0%, 20.8%)
CIE-LABlab(52.42, 52.58, -44.29)
CIE-LCHlch(52.42, 68.74, 319.89°)
OKLaboklab(61.21% 0.1347 -0.1235)
OKLCHoklch(61.21% 0.183 317.5)
XYZxyz(31.9107, 20.5242, 58.1463)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF59CA #74CA59
analogous
#7759CA #AF59CA #CA59AC
triadic
#AF59CA #CAAF59 #59CAAF
tetradic
#AF59CA #CA7759 #74CA59 #59ACCA
square
#AF59CA #CA7759 #74CA59 #59ACCA
split-complementary
#AF59CA #ACCA59 #59CA77
monochromatic
#6B2980 #9238AE #AF59CA #C587D9 #DCB6E8

Accessibility & contrast

On white

4.11
#AF59CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#AF59CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF59CA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF59CA#FFFFFF#000000##000000
##AF59CA1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F78CE
Deuteranopia (green-blind)
#5D80C7
Tritanopia (blue-blind)
#AE6B89
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af59ca;
/* rgb */ color: rgb(175, 89, 202);
/* oklch */ color: oklch(61.2% 0.183 317.5);
Tailwind
colors: {
  custom: {
    50: '#c98cda',
    500: '#af59ca',
    950: '#000000',
  },
}
SCSS
$custom: #af59ca;
$custom-light: #c98cda;
$custom-dark: #000000;
JSON
{
  "hex": "#af59ca",
  "rgb": {
    "r": 175,
    "g": 89,
    "b": 202
  },
  "hsl": {
    "h": 285.664,
    "s": 51.598,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61208,
    "c": 0.18268,
    "h": 317.5
  },
  "luminance": 0.20523
}

Semantic roles & 50–950 ramp

primary
#AF59CA
secondary
#B3D6A8
accent
#DB4D6F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF59CA

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

Preview Lab → · Contrast checker → · Palette generator →

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