#AF37A6#AF37A6

#AF37A6 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.3% C 0.199 H 331.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AF37A6
RGBrgb(175, 55, 166)
HSLhsl(305, 52%, 45%)
HSVhsv(305, 69%, 69%)
CMYKcmyk(0%, 68.6%, 5.1%, 31.4%)
CIE-LABlab(45.08, 60.99, -34.90)
CIE-LCHlch(45.08, 70.27, 330.22°)
OKLaboklab(55.26% 0.1738 -0.096)
OKLCHoklch(55.26% 0.199 331.1)
XYZxyz(25.9283, 14.6015, 37.5218)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37A6 #37AF40
analogous
#7C37AF #AF37A6 #AF376A
triadic
#AF37A6 #A6AF37 #37A6AF
tetradic
#AF37A6 #AF7C37 #37AF40 #376AAF
square
#AF37A6 #AF7C37 #37AF40 #376AAF
split-complementary
#AF37A6 #6AAF37 #37AF7C
monochromatic
#521A4E #80287A #AF37A6 #CB59C2 #D987D3

Accessibility & contrast

On white

5.36
#AF37A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#AF37A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37A6
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37A6#FFFFFF#000000##FFFFFF
##AF37A61.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af37a6;
/* rgb */ color: rgb(175, 55, 166);
/* oklch */ color: oklch(55.3% 0.199 331.1);
Tailwind
colors: {
  custom: {
    50: '#ca78c1',
    500: '#af37a6',
    950: '#000000',
  },
}
SCSS
$custom: #af37a6;
$custom-light: #ca78c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af37a6",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 166
  },
  "hsl": {
    "h": 304.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5526,
    "c": 0.19854,
    "h": 331.1
  },
  "luminance": 0.146
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF37A6

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

Preview Lab → · Contrast checker → · Palette generator →

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