#AF40D1#AF40D1

#AF40D1 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.7% C 0.224 H 317.1°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AF40D1
RGBrgb(175, 64, 209)
HSLhsl(286, 61%, 54%)
HSVhsv(286, 69%, 82%)
CMYKcmyk(16.3%, 69.4%, 0%, 18%)
CIE-LABlab(48.74, 65.19, -54.17)
CIE-LCHlch(48.74, 84.76, 320.27°)
OKLaboklab(58.67% 0.164 -0.1522)
OKLCHoklch(58.67% 0.224 317.1)
XYZxyz(31.0195, 17.3855, 62.0310)
Luminance0.1738 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40D1 #62D140
analogous
#6640D1 #AF40D1 #D140AA
triadic
#AF40D1 #D1AF40 #40D1AF
tetradic
#AF40D1 #D16640 #62D140 #40AAD1
square
#AF40D1 #D16640 #62D140 #40AAD1
split-complementary
#AF40D1 #AAD140 #40D166
monochromatic
#641D79 #8C29AB #AF40D1 #C471DD #D8A3E9

Accessibility & contrast

On white

4.69
#AF40D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AF40D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40D1
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40D1#FFFFFF#000000##FFFFFF
##AF40D11.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD5
Deuteranopia (green-blind)
#4377CE
Tritanopia (blue-blind)
#AD5C84
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af40d1;
/* rgb */ color: rgb(175, 64, 209);
/* oklch */ color: oklch(58.7% 0.224 317.1);
Tailwind
colors: {
  custom: {
    50: '#cb7ee0',
    500: '#af40d1',
    950: '#000000',
  },
}
SCSS
$custom: #af40d1;
$custom-light: #cb7ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#af40d1",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 285.931,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5867,
    "c": 0.22371,
    "h": 317.1
  },
  "luminance": 0.17384
}

Semantic roles & 50–950 ramp

primary
#AF40D1
secondary
#A6D597
accent
#E44469
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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