#AF4CD9#AF4CD9

#AF4CD9 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.5% C 0.216 H 314.2°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF4CD9
RGBrgb(175, 76, 217)
HSLhsl(282, 65%, 57%)
HSVhsv(282, 65%, 85%)
CMYKcmyk(19.4%, 65%, 0%, 14.9%)
CIE-LABlab(51.03, 61.74, -55.08)
CIE-LCHlch(51.03, 82.74, 318.27°)
OKLaboklab(60.47% 0.1506 -0.1549)
OKLCHoklch(60.47% 0.216 314.2)
XYZxyz(32.7859, 19.2936, 67.6292)
Luminance0.1929 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CD9 #76D94C
analogous
#694CD9 #AF4CD9 #D94CBC
triadic
#AF4CD9 #D9AF4C #4CD9AF
tetradic
#AF4CD9 #D9694C #76D94C #4CBCD9
square
#AF4CD9 #D9694C #76D94C #4CBCD9
split-complementary
#AF4CD9 #BCD94C #4CD969
monochromatic
#6C1E8D #9229BF #AF4CD9 #C67EE4 #DCB1EE

Accessibility & contrast

On white

4.32
#AF4CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AF4CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CD9
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CD9#FFFFFF#000000##000000
##AF4CD91.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DD
Deuteranopia (green-blind)
#467CD6
Tritanopia (blue-blind)
#AB678C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4cd9;
/* rgb */ color: rgb(175, 76, 217);
/* oklch */ color: oklch(60.5% 0.216 314.2);
Tailwind
colors: {
  custom: {
    50: '#cb85e5',
    500: '#af4cd9',
    950: '#000000',
  },
}
SCSS
$custom: #af4cd9;
$custom-light: #cb85e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cd9",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 217
  },
  "hsl": {
    "h": 282.128,
    "s": 64.977,
    "l": 57.451
  },
  "oklch": {
    "l": 0.60467,
    "c": 0.21606,
    "h": 314.2
  },
  "luminance": 0.19293
}

Semantic roles & 50–950 ramp

primary
#AF4CD9
secondary
#B5DDA4
accent
#E84072
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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