#AF37AC#AF37AC

#AF37AC is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.6% C 0.203 H 328.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AF37AC
RGBrgb(175, 55, 172)
HSLhsl(302, 52%, 45%)
HSVhsv(302, 69%, 69%)
CMYKcmyk(0%, 68.6%, 1.7%, 31.4%)
CIE-LABlab(45.40, 61.97, -37.96)
CIE-LCHlch(45.40, 72.67, 328.51°)
OKLaboklab(55.59% 0.1741 -0.1048)
OKLCHoklch(55.59% 0.203 328.9)
XYZxyz(26.4915, 14.8268, 40.4883)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37AC #37AF3A
analogous
#7637AF #AF37AC #AF3770
triadic
#AF37AC #ACAF37 #37ACAF
tetradic
#AF37AC #AF7637 #37AF3A #3770AF
square
#AF37AC #AF7637 #37AF3A #3770AF
split-complementary
#AF37AC #70AF37 #37AF76
monochromatic
#521A50 #80287E #AF37AC #CB59C8 #D987D7

Accessibility & contrast

On white

5.30
#AF37AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#AF37AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37AC
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37AC#FFFFFF#000000##FFFFFF
##AF37AC1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AF
Deuteranopia (green-blind)
#5771A9
Tritanopia (blue-blind)
#B5476D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af37ac;
/* rgb */ color: rgb(175, 55, 172);
/* oklch */ color: oklch(55.6% 0.203 328.9);
Tailwind
colors: {
  custom: {
    50: '#ca78c5',
    500: '#af37ac',
    950: '#000000',
  },
}
SCSS
$custom: #af37ac;
$custom-light: #ca78c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af37ac",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 301.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55587,
    "c": 0.20323,
    "h": 328.9
  },
  "luminance": 0.14825
}

Semantic roles & 50–950 ramp

primary
#AF37AC
secondary
#7FC380
accent
#DC504C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF37AC

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

Preview Lab → · Contrast checker → · Palette generator →

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