#AF37C7#AF37C7

#AF37C7 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.2% C 0.225 H 320.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AF37C7
RGBrgb(175, 55, 199)
HSLhsl(290, 57%, 50%)
HSVhsv(290, 72%, 78%)
CMYKcmyk(12.1%, 72.4%, 0%, 22%)
CIE-LABlab(46.94, 66.69, -51.31)
CIE-LCHlch(46.94, 84.14, 322.43°)
OKLaboklab(57.19% 0.1736 -0.1437)
OKLCHoklch(57.19% 0.225 320.4)
XYZxyz(29.3529, 15.9714, 55.5584)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37C7 #4FC737
analogous
#6737C7 #AF37C7 #C73797
triadic
#AF37C7 #C7AF37 #37C7AF
tetradic
#AF37C7 #C76737 #4FC737 #3797C7
square
#AF37C7 #C76737 #4FC737 #3797C7
split-complementary
#AF37C7 #97C737 #37C767
monochromatic
#5B1C67 #852A97 #AF37C7 #C266D5 #D596E2

Accessibility & contrast

On white

5.01
#AF37C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#AF37C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37C7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37C7#FFFFFF#000000##FFFFFF
##AF37C71.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#4573C4
Tritanopia (blue-blind)
#B0537C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af37c7;
/* rgb */ color: rgb(175, 55, 199);
/* oklch */ color: oklch(57.2% 0.225 320.4);
Tailwind
colors: {
  custom: {
    50: '#cb79d9',
    500: '#af37c7',
    950: '#000000',
  },
}
SCSS
$custom: #af37c7;
$custom-light: #cb79d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af37c7",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 199
  },
  "hsl": {
    "h": 290,
    "s": 56.693,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57186,
    "c": 0.22536,
    "h": 320.4
  },
  "luminance": 0.1597
}

Semantic roles & 50–950 ramp

primary
#AF37C7
secondary
#97CD8C
accent
#E04861
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF37C7

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

Preview Lab → · Contrast checker → · Palette generator →

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