#AF38D2#AF38D2

#AF38D2 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.0% C 0.234 H 317.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF38D2
RGBrgb(175, 56, 210)
HSLhsl(286, 63%, 52%)
HSVhsv(286, 73%, 82%)
CMYKcmyk(16.7%, 73.3%, 0%, 17.6%)
CIE-LABlab(47.75, 68.38, -56.34)
CIE-LCHlch(47.75, 88.60, 320.51°)
OKLaboklab(57.98% 0.1717 -0.1585)
OKLCHoklch(57.98% 0.234 317.3)
XYZxyz(30.7245, 16.5968, 62.5454)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38D2 #5BD238
analogous
#6238D2 #AF38D2 #D238A8
triadic
#AF38D2 #D2AF38 #38D2AF
tetradic
#AF38D2 #D26238 #5BD238 #38A8D2
square
#AF38D2 #D26238 #5BD238 #38A8D2
split-complementary
#AF38D2 #A8D238 #38D262
monochromatic
#611A75 #8A26A7 #AF38D2 #C36ADD #D79CE9

Accessibility & contrast

On white

4.86
#AF38D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF38D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38D2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38D2#FFFFFF#000000##FFFFFF
##AF38D21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#3C75CF
Tritanopia (blue-blind)
#AD5883
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af38d2;
/* rgb */ color: rgb(175, 56, 210);
/* oklch */ color: oklch(58.0% 0.234 317.3);
Tailwind
colors: {
  custom: {
    50: '#cb7ae1',
    500: '#af38d2',
    950: '#000000',
  },
}
SCSS
$custom: #af38d2;
$custom-light: #cb7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#af38d2",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 286.364,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57982,
    "c": 0.23362,
    "h": 317.3
  },
  "luminance": 0.16595
}

Semantic roles & 50–950 ramp

primary
#AF38D2
secondary
#A1D591
accent
#E64267
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF38D2

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

Preview Lab → · Contrast checker → · Palette generator →

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