#AF37A9#AF37A9

#AF37A9 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.4% C 0.201 H 330.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AF37A9
RGBrgb(175, 55, 169)
HSLhsl(303, 52%, 45%)
HSVhsv(303, 69%, 69%)
CMYKcmyk(0%, 68.6%, 3.4%, 31.4%)
CIE-LABlab(45.24, 61.47, -36.44)
CIE-LCHlch(45.24, 71.46, 329.34°)
OKLaboklab(55.42% 0.174 -0.1004)
OKLCHoklch(55.42% 0.201 330)
XYZxyz(26.2067, 14.7129, 38.9880)
Luminance0.1471 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37A9 #37AF3D
analogous
#7937AF #AF37A9 #AF376D
triadic
#AF37A9 #A9AF37 #37A9AF
tetradic
#AF37A9 #AF7937 #37AF3D #376DAF
square
#AF37A9 #AF7937 #37AF3D #376DAF
split-complementary
#AF37A9 #6DAF37 #37AF79
monochromatic
#521A4F #80287C #AF37A9 #CB59C5 #D987D5

Accessibility & contrast

On white

5.33
#AF37A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#AF37A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37A9
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37A9#FFFFFF#000000##FFFFFF
##AF37A91.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B61AC
Deuteranopia (green-blind)
#5971A6
Tritanopia (blue-blind)
#B5466C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af37a9;
/* rgb */ color: rgb(175, 55, 169);
/* oklch */ color: oklch(55.4% 0.201 330.0);
Tailwind
colors: {
  custom: {
    50: '#ca78c3',
    500: '#af37a9',
    950: '#000000',
  },
}
SCSS
$custom: #af37a9;
$custom-light: #ca78c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af37a9",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 169
  },
  "hsl": {
    "h": 303,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55422,
    "c": 0.20087,
    "h": 330
  },
  "luminance": 0.14711
}

Semantic roles & 50–950 ramp

primary
#AF37A9
secondary
#7FC382
accent
#DC534C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF37A9

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

Preview Lab → · Contrast checker → · Palette generator →

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