#AF37A0#AF37A0

#AF37A0 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.9% C 0.194 H 333.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF37A0
RGBrgb(175, 55, 160)
HSLhsl(308, 52%, 45%)
HSVhsv(308, 69%, 69%)
CMYKcmyk(0%, 68.6%, 8.6%, 31.4%)
CIE-LABlab(44.78, 60.03, -31.80)
CIE-LCHlch(44.78, 67.93, 332.09°)
OKLaboklab(54.94% 0.1733 -0.0871)
OKLCHoklch(54.94% 0.194 333.3)
XYZxyz(25.3907, 14.3865, 34.6905)
Luminance0.1438 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37A0 #37AF46
analogous
#8237AF #AF37A0 #AF3764
triadic
#AF37A0 #A0AF37 #37A0AF
tetradic
#AF37A0 #AF8237 #37AF46 #3764AF
square
#AF37A0 #AF8237 #37AF46 #3764AF
split-complementary
#AF37A0 #64AF37 #37AF82
monochromatic
#521A4B #802875 #AF37A0 #CB59BC #D987CF

Accessibility & contrast

On white

5.42
#AF37A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF37A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37A0
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37A0#FFFFFF#000000##FFFFFF
##AF37A01.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335FA3
Deuteranopia (green-blind)
#5D709D
Tritanopia (blue-blind)
#B74267
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af37a0;
/* rgb */ color: rgb(175, 55, 160);
/* oklch */ color: oklch(54.9% 0.194 333.3);
Tailwind
colors: {
  custom: {
    50: '#ca78bc',
    500: '#af37a0',
    950: '#000000',
  },
}
SCSS
$custom: #af37a0;
$custom-light: #ca78bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af37a0",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 160
  },
  "hsl": {
    "h": 307.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54944,
    "c": 0.19397,
    "h": 333.3
  },
  "luminance": 0.14384
}

Semantic roles & 50–950 ramp

primary
#AF37A0
secondary
#7FC387
accent
#DC5E4C
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF37A0

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

Preview Lab → · Contrast checker → · Palette generator →

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