#AF39C7#AF39C7

#AF39C7 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.223 H 320.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF39C7
RGBrgb(175, 57, 199)
HSLhsl(290, 56%, 50%)
HSVhsv(290, 71%, 78%)
CMYKcmyk(12.1%, 71.4%, 0%, 22%)
CIE-LABlab(47.19, 65.97, -50.90)
CIE-LCHlch(47.19, 83.32, 322.35°)
OKLaboklab(57.37% 0.1717 -0.1425)
OKLCHoklch(57.37% 0.223 320.3)
XYZxyz(29.4499, 16.1652, 55.5907)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF39C7 #51C739
analogous
#6839C7 #AF39C7 #C73998
triadic
#AF39C7 #C7AF39 #39C7AF
tetradic
#AF39C7 #C76839 #51C739 #3998C7
square
#AF39C7 #C76839 #51C739 #3998C7
split-complementary
#AF39C7 #98C739 #39C768
monochromatic
#5C1D68 #852B98 #AF39C7 #C269D4 #D698E2

Accessibility & contrast

On white

4.96
#AF39C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#AF39C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF39C7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF39C7#FFFFFF#000000##FFFFFF
##AF39C71.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#4774C4
Tritanopia (blue-blind)
#B0547D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af39c7;
/* rgb */ color: rgb(175, 57, 199);
/* oklch */ color: oklch(57.4% 0.223 320.3);
Tailwind
colors: {
  custom: {
    50: '#cb7ad9',
    500: '#af39c7',
    950: '#000000',
  },
}
SCSS
$custom: #af39c7;
$custom-light: #cb7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#af39c7",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 199
  },
  "hsl": {
    "h": 289.859,
    "s": 55.906,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57367,
    "c": 0.22313,
    "h": 320.3
  },
  "luminance": 0.16164
}

Semantic roles & 50–950 ramp

primary
#AF39C7
secondary
#99CE8E
accent
#DF4962
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF39C7

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

Preview Lab → · Contrast checker → · Palette generator →

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