#AF37A5#AF37A5

#AF37A5 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.2% C 0.198 H 331.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF37A5
RGBrgb(175, 55, 165)
HSLhsl(305, 52%, 45%)
HSVhsv(305, 69%, 69%)
CMYKcmyk(0%, 68.6%, 5.7%, 31.4%)
CIE-LABlab(45.03, 60.82, -34.39)
CIE-LCHlch(45.03, 69.87, 330.52°)
OKLaboklab(55.21% 0.1737 -0.0945)
OKLCHoklch(55.21% 0.198 331.4)
XYZxyz(25.8369, 14.5650, 37.0405)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37A5 #37AF41
analogous
#7D37AF #AF37A5 #AF3769
triadic
#AF37A5 #A5AF37 #37A5AF
tetradic
#AF37A5 #AF7D37 #37AF41 #3769AF
square
#AF37A5 #AF7D37 #37AF41 #3769AF
split-complementary
#AF37A5 #69AF37 #37AF7D
monochromatic
#521A4D #802879 #AF37A5 #CB59C1 #D987D2

Accessibility & contrast

On white

5.37
#AF37A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF37A5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37A5#FFFFFF#000000##FFFFFF
##AF37A51.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F60A8
Deuteranopia (green-blind)
#5B71A2
Tritanopia (blue-blind)
#B6446A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af37a5;
/* rgb */ color: rgb(175, 55, 165);
/* oklch */ color: oklch(55.2% 0.198 331.4);
Tailwind
colors: {
  custom: {
    50: '#ca78c0',
    500: '#af37a5',
    950: '#000000',
  },
}
SCSS
$custom: #af37a5;
$custom-light: #ca78c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af37a5",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 305,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55207,
    "c": 0.19777,
    "h": 331.4
  },
  "luminance": 0.14563
}

Semantic roles & 50–950 ramp

primary
#AF37A5
secondary
#7FC384
accent
#DC584C
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF37A5

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

Preview Lab → · Contrast checker → · Palette generator →

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