#AF40D0#AF40D0

#AF40D0 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.6% C 0.223 H 317.4°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF40D0
RGBrgb(175, 64, 208)
HSLhsl(286, 61%, 53%)
HSVhsv(286, 69%, 82%)
CMYKcmyk(15.9%, 69.2%, 0%, 18.4%)
CIE-LABlab(48.68, 64.99, -53.70)
CIE-LCHlch(48.68, 84.31, 320.44°)
OKLaboklab(58.61% 0.1641 -0.1508)
OKLCHoklch(58.61% 0.223 317.4)
XYZxyz(30.8961, 17.3361, 61.3810)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40D0 #61D040
analogous
#6740D0 #AF40D0 #D040A9
triadic
#AF40D0 #D0AF40 #40D0AF
tetradic
#AF40D0 #D06740 #61D040 #40A9D0
square
#AF40D0 #D06740 #61D040 #40A9D0
split-complementary
#AF40D0 #A9D040 #40D067
monochromatic
#631E78 #8C2AA9 #AF40D0 #C471DC #D8A2E8

Accessibility & contrast

On white

4.70
#AF40D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AF40D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40D0
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40D0#FFFFFF#000000##FFFFFF
##AF40D01.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD4
Deuteranopia (green-blind)
#4477CD
Tritanopia (blue-blind)
#AE5C84
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af40d0;
/* rgb */ color: rgb(175, 64, 208);
/* oklch */ color: oklch(58.6% 0.223 317.4);
Tailwind
colors: {
  custom: {
    50: '#cb7edf',
    500: '#af40d0',
    950: '#000000',
  },
}
SCSS
$custom: #af40d0;
$custom-light: #cb7edf;
$custom-dark: #000000;
JSON
{
  "hex": "#af40d0",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 286.25,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58607,
    "c": 0.22282,
    "h": 317.4
  },
  "luminance": 0.17335
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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