#AF38D0#AF38D0

#AF38D0 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.9% C 0.232 H 317.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AF38D0
RGBrgb(175, 56, 208)
HSLhsl(287, 62%, 52%)
HSVhsv(287, 73%, 82%)
CMYKcmyk(15.9%, 73.1%, 0%, 18.4%)
CIE-LABlab(47.62, 68.00, -55.40)
CIE-LCHlch(47.62, 87.71, 320.83°)
OKLaboklab(57.85% 0.1719 -0.1557)
OKLCHoklch(57.85% 0.232 317.8)
XYZxyz(30.4769, 16.4977, 61.2413)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38D0 #59D038
analogous
#6338D0 #AF38D0 #D038A5
triadic
#AF38D0 #D0AF38 #38D0AF
tetradic
#AF38D0 #D06338 #59D038 #38A5D0
square
#AF38D0 #D06338 #59D038 #38A5D0
split-complementary
#AF38D0 #A5D038 #38D063
monochromatic
#601B73 #8927A4 #AF38D0 #C36ADC #D79BE7

Accessibility & contrast

On white

4.88
#AF38D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AF38D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38D0
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38D0#FFFFFF#000000##FFFFFF
##AF38D01.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD4
Deuteranopia (green-blind)
#3E75CD
Tritanopia (blue-blind)
#AE5781
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af38d0;
/* rgb */ color: rgb(175, 56, 208);
/* oklch */ color: oklch(57.9% 0.232 317.8);
Tailwind
colors: {
  custom: {
    50: '#cb7adf',
    500: '#af38d0',
    950: '#000000',
  },
}
SCSS
$custom: #af38d0;
$custom-light: #cb7adf;
$custom-dark: #000000;
JSON
{
  "hex": "#af38d0",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 286.974,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57852,
    "c": 0.23191,
    "h": 317.8
  },
  "luminance": 0.16496
}

Semantic roles & 50–950 ramp

primary
#AF38D0
secondary
#9FD391
accent
#E54366
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF38D0

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

Preview Lab → · Contrast checker → · Palette generator →

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