#AF37A2#AF37A2

#AF37A2 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.0% C 0.195 H 332.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AF37A2
RGBrgb(175, 55, 162)
HSLhsl(307, 52%, 45%)
HSVhsv(307, 69%, 69%)
CMYKcmyk(0%, 68.6%, 7.4%, 31.4%)
CIE-LABlab(44.88, 60.34, -32.84)
CIE-LCHlch(44.88, 68.70, 331.44°)
OKLaboklab(55.05% 0.1735 -0.0901)
OKLCHoklch(55.05% 0.195 332.6)
XYZxyz(25.5670, 14.4570, 35.6193)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37A2 #37AF44
analogous
#8037AF #AF37A2 #AF3766
triadic
#AF37A2 #A2AF37 #37A2AF
tetradic
#AF37A2 #AF8037 #37AF44 #3766AF
square
#AF37A2 #AF8037 #37AF44 #3766AF
split-complementary
#AF37A2 #66AF37 #37AF80
monochromatic
#521A4C #802877 #AF37A2 #CB59BE #D987D0

Accessibility & contrast

On white

5.40
#AF37A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AF37A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37A2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37A2#FFFFFF#000000##FFFFFF
##AF37A21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA5
Deuteranopia (green-blind)
#5C709F
Tritanopia (blue-blind)
#B74268
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af37a2;
/* rgb */ color: rgb(175, 55, 162);
/* oklch */ color: oklch(55.0% 0.195 332.6);
Tailwind
colors: {
  custom: {
    50: '#ca78be',
    500: '#af37a2',
    950: '#000000',
  },
}
SCSS
$custom: #af37a2;
$custom-light: #ca78be;
$custom-dark: #000000;
JSON
{
  "hex": "#af37a2",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 306.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55048,
    "c": 0.19547,
    "h": 332.6
  },
  "luminance": 0.14455
}

Semantic roles & 50–950 ramp

primary
#AF37A2
secondary
#7FC386
accent
#DC5C4C
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF37A2

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

Preview Lab → · Contrast checker → · Palette generator →

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