#AF37AF#AF37AF

#AF37AF is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.8% C 0.206 H 327.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#AF37AF
RGBrgb(175, 55, 175)
HSLhsl(300, 52%, 45%)
HSVhsv(300, 69%, 69%)
CMYKcmyk(0%, 68.6%, 0%, 31.4%)
CIE-LABlab(45.56, 62.47, -39.48)
CIE-LCHlch(45.56, 73.90, 327.71°)
OKLaboklab(55.75% 0.1742 -0.1092)
OKLCHoklch(55.75% 0.206 327.9)
XYZxyz(26.7829, 14.9434, 42.0228)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37AF #37AF37
analogous
#7337AF #AF37AF #AF3773
triadic
#AF37AF #AFAF37 #37AFAF
tetradic
#AF37AF #AF7337 #37AF37 #3773AF
square
#AF37AF #AF7337 #37AF37 #3773AF
split-complementary
#AF37AF #73AF37 #37AF73
monochromatic
#521A52 #802880 #AF37AF #CB59CB #D987D9

Accessibility & contrast

On white

5.27
#AF37AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF37AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37AF
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37AF#FFFFFF#000000##FFFFFF
##AF37AF1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2462B2
Deuteranopia (green-blind)
#5671AC
Tritanopia (blue-blind)
#B4486F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af37af;
/* rgb */ color: rgb(175, 55, 175);
/* oklch */ color: oklch(55.8% 0.206 327.9);
Tailwind
colors: {
  custom: {
    50: '#ca78c7',
    500: '#af37af',
    950: '#000000',
  },
}
SCSS
$custom: #af37af;
$custom-light: #ca78c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af37af",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55754,
    "c": 0.20562,
    "h": 327.9
  },
  "luminance": 0.14941
}

Semantic roles & 50–950 ramp

primary
#AF37AF
secondary
#7FC37F
accent
#DC4C4C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF37AF

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

Preview Lab → · Contrast checker → · Palette generator →

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