#AF5CC9#AF5CC9

#AF5CC9 is a mid, vivid purple. Relative luminance 0.210; OKLCH L 61.6% C 0.177 H 317.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AF5CC9
RGBrgb(175, 92, 201)
HSLhsl(286, 50%, 57%)
HSVhsv(286, 54%, 79%)
CMYKcmyk(12.9%, 54.2%, 0%, 21.2%)
CIE-LABlab(52.93, 50.88, -42.91)
CIE-LCHlch(52.93, 66.55, 319.86°)
OKLaboklab(61.57% 0.1306 -0.1195)
OKLCHoklch(61.57% 0.177 317.6)
XYZxyz(32.0475, 20.9865, 57.6097)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CC9 #76C95C
analogous
#795CC9 #AF5CC9 #C95CAC
triadic
#AF5CC9 #C9AF5C #5CC9AF
tetradic
#AF5CC9 #C9795C #76C95C #5CACC9
square
#AF5CC9 #C9795C #76C95C #5CACC9
split-complementary
#AF5CC9 #ACC95C #5CC979
monochromatic
#6C2A80 #923AAE #AF5CC9 #C68AD8 #DCB8E7

Accessibility & contrast

On white

4.04
#AF5CC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#AF5CC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CC9
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CC9#FFFFFF#000000##000000
##AF5CC91.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4479CD
Deuteranopia (green-blind)
#6081C6
Tritanopia (blue-blind)
#AE6D8A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5cc9;
/* rgb */ color: rgb(175, 92, 201);
/* oklch */ color: oklch(61.6% 0.177 317.6);
Tailwind
colors: {
  custom: {
    50: '#c98eda',
    500: '#af5cc9',
    950: '#000000',
  },
}
SCSS
$custom: #af5cc9;
$custom-light: #c98eda;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cc9",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 201
  },
  "hsl": {
    "h": 285.688,
    "s": 50.23,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61566,
    "c": 0.17701,
    "h": 317.6
  },
  "luminance": 0.20985
}

Semantic roles & 50–950 ramp

primary
#AF5CC9
secondary
#B5D6AA
accent
#DA4E6F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5CC9

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

Preview Lab → · Contrast checker → · Palette generator →

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