#AF37A4#AF37A4

#AF37A4 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.2% C 0.197 H 331.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF37A4
RGBrgb(175, 55, 164)
HSLhsl(306, 52%, 45%)
HSVhsv(306, 69%, 69%)
CMYKcmyk(0%, 68.6%, 6.3%, 31.4%)
CIE-LABlab(44.98, 60.66, -33.87)
CIE-LCHlch(44.98, 69.48, 330.82°)
OKLaboklab(55.15% 0.1737 -0.093)
OKLCHoklch(55.15% 0.197 331.8)
XYZxyz(25.7462, 14.5287, 36.5631)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37A4 #37AF42
analogous
#7E37AF #AF37A4 #AF3768
triadic
#AF37A4 #A4AF37 #37A4AF
tetradic
#AF37A4 #AF7E37 #37AF42 #3768AF
square
#AF37A4 #AF7E37 #37AF42 #3768AF
split-complementary
#AF37A4 #68AF37 #37AF7E
monochromatic
#521A4D #802878 #AF37A4 #CB59C0 #D987D2

Accessibility & contrast

On white

5.38
#AF37A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF37A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37A4
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37A4#FFFFFF#000000##FFFFFF
##AF37A41.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3060A7
Deuteranopia (green-blind)
#5B70A1
Tritanopia (blue-blind)
#B64369
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af37a4;
/* rgb */ color: rgb(175, 55, 164);
/* oklch */ color: oklch(55.2% 0.197 331.8);
Tailwind
colors: {
  custom: {
    50: '#ca78bf',
    500: '#af37a4',
    950: '#000000',
  },
}
SCSS
$custom: #af37a4;
$custom-light: #ca78bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af37a4",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 305.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55153,
    "c": 0.197,
    "h": 331.8
  },
  "luminance": 0.14527
}

Semantic roles & 50–950 ramp

primary
#AF37A4
secondary
#7FC385
accent
#DC594C
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF37A4

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

Preview Lab → · Contrast checker → · Palette generator →

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