#AF38D9#AF38D9

#AF38D9 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.4% C 0.240 H 315.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF38D9
RGBrgb(175, 56, 217)
HSLhsl(284, 68%, 54%)
HSVhsv(284, 74%, 85%)
CMYKcmyk(19.4%, 74.2%, 0%, 14.9%)
CIE-LABlab(48.20, 69.71, -59.62)
CIE-LCHlch(48.20, 91.73, 319.46°)
OKLaboklab(58.45% 0.1708 -0.1681)
OKLCHoklch(58.45% 0.24 315.5)
XYZxyz(31.6157, 16.9533, 67.2391)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38D9 #62D938
analogous
#5E38D9 #AF38D9 #D938B2
triadic
#AF38D9 #D9AF38 #38D9AF
tetradic
#AF38D9 #D95E38 #62D938 #38B2D9
square
#AF38D9 #D95E38 #62D938 #38B2D9
split-complementary
#AF38D9 #B2D938 #38D95E
monochromatic
#64187E #8C22B2 #AF38D9 #C46BE3 #D89FED

Accessibility & contrast

On white

4.78
#AF38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AF38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38D9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38D9#FFFFFF#000000##FFFFFF
##AF38D91.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#3376D6
Tritanopia (blue-blind)
#AC5B86
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af38d9;
/* rgb */ color: rgb(175, 56, 217);
/* oklch */ color: oklch(58.4% 0.240 315.5);
Tailwind
colors: {
  custom: {
    50: '#cb7ae6',
    500: '#af38d9',
    950: '#000000',
  },
}
SCSS
$custom: #af38d9;
$custom-light: #cb7ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#af38d9",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 284.348,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58448,
    "c": 0.23965,
    "h": 315.5
  },
  "luminance": 0.16952
}

Semantic roles & 50–950 ramp

primary
#AF38D9
secondary
#A6D994
accent
#EB3D6A
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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