#AF37C2#AF37C2

#AF37C2 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.9% C 0.221 H 321.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF37C2
RGBrgb(175, 55, 194)
HSLhsl(292, 56%, 49%)
HSVhsv(292, 72%, 76%)
CMYKcmyk(9.8%, 71.6%, 0%, 23.9%)
CIE-LABlab(46.64, 65.78, -48.89)
CIE-LCHlch(46.64, 81.96, 323.38°)
OKLaboklab(56.88% 0.1739 -0.1366)
OKLCHoklch(56.88% 0.221 321.8)
XYZxyz(28.7819, 15.7430, 52.5511)
Luminance0.1574 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37C2 #4AC237
analogous
#6A37C2 #AF37C2 #C23790
triadic
#AF37C2 #C2AF37 #37C2AF
tetradic
#AF37C2 #C26A37 #4AC237 #3790C2
square
#AF37C2 #C26A37 #4AC237 #3790C2
split-complementary
#AF37C2 #90C237 #37C26A
monochromatic
#591C63 #842992 #AF37C2 #C463D3 #D693E0

Accessibility & contrast

On white

5.06
#AF37C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AF37C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37C2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37C2#FFFFFF#000000##FFFFFF
##AF37C21.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#4973BF
Tritanopia (blue-blind)
#B15179
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af37c2;
/* rgb */ color: rgb(175, 55, 194);
/* oklch */ color: oklch(56.9% 0.221 321.8);
Tailwind
colors: {
  custom: {
    50: '#cb79d5',
    500: '#af37c2',
    950: '#000000',
  },
}
SCSS
$custom: #af37c2;
$custom-light: #cb79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af37c2",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 291.799,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56875,
    "c": 0.22117,
    "h": 321.8
  },
  "luminance": 0.15741
}

Semantic roles & 50–950 ramp

primary
#AF37C2
secondary
#92CB89
accent
#DF495D
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF37C2

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

Preview Lab → · Contrast checker → · Palette generator →

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