#AF37A8#AF37A8

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

Color values

HEX#AF37A8
RGBrgb(175, 55, 168)
HSLhsl(304, 52%, 45%)
HSVhsv(304, 69%, 69%)
CMYKcmyk(0%, 68.6%, 4%, 31.4%)
CIE-LABlab(45.19, 61.31, -35.93)
CIE-LCHlch(45.19, 71.06, 329.63°)
OKLaboklab(55.37% 0.1739 -0.099)
OKLCHoklch(55.37% 0.2 330.4)
XYZxyz(26.1131, 14.6755, 38.4955)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37A8 #37AF3E
analogous
#7A37AF #AF37A8 #AF376C
triadic
#AF37A8 #A8AF37 #37A8AF
tetradic
#AF37A8 #AF7A37 #37AF3E #376CAF
square
#AF37A8 #AF7A37 #37AF3E #376CAF
split-complementary
#AF37A8 #6CAF37 #37AF7A
monochromatic
#521A4F #80287B #AF37A8 #CB59C4 #D987D5

Accessibility & contrast

On white

5.34
#AF37A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AF37A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37A8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37A8#FFFFFF#000000##FFFFFF
##AF37A81.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C60AB
Deuteranopia (green-blind)
#5A71A5
Tritanopia (blue-blind)
#B6456B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af37a8;
/* rgb */ color: rgb(175, 55, 168);
/* oklch */ color: oklch(55.4% 0.200 330.4);
Tailwind
colors: {
  custom: {
    50: '#ca78c2',
    500: '#af37a8',
    950: '#000000',
  },
}
SCSS
$custom: #af37a8;
$custom-light: #ca78c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af37a8",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 168
  },
  "hsl": {
    "h": 303.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55368,
    "c": 0.20009,
    "h": 330.4
  },
  "luminance": 0.14673
}

Semantic roles & 50–950 ramp

primary
#AF37A8
secondary
#7FC383
accent
#DC554C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF37A8

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

Preview Lab → · Contrast checker → · Palette generator →

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