#AF39B2#AF39B2

#AF39B2 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.1% C 0.206 H 326.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF39B2
RGBrgb(175, 57, 178)
HSLhsl(299, 51%, 46%)
HSVhsv(299, 68%, 70%)
CMYKcmyk(1.7%, 68%, 0%, 30.2%)
CIE-LABlab(45.98, 62.23, -40.57)
CIE-LCHlch(45.98, 74.29, 326.90°)
OKLaboklab(56.11% 0.1722 -0.1124)
OKLCHoklch(56.11% 0.206 326.9)
XYZxyz(27.1777, 15.2564, 43.6242)
Luminance0.1525 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF39B2 #3CB239
analogous
#7239B2 #AF39B2 #B23978
triadic
#AF39B2 #B2AF39 #39B2AF
tetradic
#AF39B2 #B27239 #3CB239 #3978B2
square
#AF39B2 #B27239 #3CB239 #3978B2
split-complementary
#AF39B2 #78B239 #39B272
monochromatic
#541B55 #812A84 #AF39B2 #C85DCB #D88BDA

Accessibility & contrast

On white

5.18
#AF39B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF39B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF39B2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF39B2#FFFFFF#000000##FFFFFF
##AF39B21.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B5
Deuteranopia (green-blind)
#5572AF
Tritanopia (blue-blind)
#B44B71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af39b2;
/* rgb */ color: rgb(175, 57, 178);
/* oklch */ color: oklch(56.1% 0.206 326.9);
Tailwind
colors: {
  custom: {
    50: '#ca79c9',
    500: '#af39b2',
    950: '#000000',
  },
}
SCSS
$custom: #af39b2;
$custom-light: #ca79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af39b2",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 298.512,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56114,
    "c": 0.20562,
    "h": 326.9
  },
  "luminance": 0.15255
}

Semantic roles & 50–950 ramp

primary
#AF39B2
secondary
#84C482
accent
#DB4D50
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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