#AF59CC#AF59CC

#AF59CC is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.3% C 0.185 H 316.9°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF59CC
RGBrgb(175, 89, 204)
HSLhsl(285, 53%, 57%)
HSVhsv(285, 56%, 80%)
CMYKcmyk(14.2%, 56.4%, 0%, 20%)
CIE-LABlab(52.53, 52.98, -45.27)
CIE-LCHlch(52.53, 69.69, 319.49°)
OKLaboklab(61.32% 0.1348 -0.1263)
OKLCHoklch(61.32% 0.185 316.9)
XYZxyz(32.1491, 20.6195, 59.4015)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF59CC #76CC59
analogous
#7659CC #AF59CC #CC59AF
triadic
#AF59CC #CCAF59 #59CCAF
tetradic
#AF59CC #CC7659 #76CC59 #59AFCC
square
#AF59CC #CC7659 #76CC59 #59AFCC
split-complementary
#AF59CC #AFCC59 #59CC76
monochromatic
#6C2883 #9236B1 #AF59CC #C688DA #DCB7E9

Accessibility & contrast

On white

4.10
#AF59CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#AF59CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF59CC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF59CC#FFFFFF#000000##000000
##AF59CC1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D78D0
Deuteranopia (green-blind)
#5B80C9
Tritanopia (blue-blind)
#AE6C8A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af59cc;
/* rgb */ color: rgb(175, 89, 204);
/* oklch */ color: oklch(61.3% 0.185 316.9);
Tailwind
colors: {
  custom: {
    50: '#c98cdc',
    500: '#af59cc',
    950: '#000000',
  },
}
SCSS
$custom: #af59cc;
$custom-light: #c98cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#af59cc",
  "rgb": {
    "r": 175,
    "g": 89,
    "b": 204
  },
  "hsl": {
    "h": 284.87,
    "s": 52.995,
    "l": 57.451
  },
  "oklch": {
    "l": 0.6132,
    "c": 0.1847,
    "h": 316.9
  },
  "luminance": 0.20618
}

Semantic roles & 50–950 ramp

primary
#AF59CC
secondary
#B5D8A9
accent
#DC4B70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF59CC

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

Preview Lab → · Contrast checker → · Palette generator →

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