#AF37CF#AF37CF

#AF37CF is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.7% C 0.232 H 318.1°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF37CF
RGBrgb(175, 55, 207)
HSLhsl(287, 61%, 51%)
HSVhsv(287, 73%, 81%)
CMYKcmyk(15.5%, 73.4%, 0%, 18.8%)
CIE-LABlab(47.43, 68.17, -55.13)
CIE-LCHlch(47.43, 87.67, 321.04°)
OKLaboklab(57.7% 0.1729 -0.1549)
OKLCHoklch(57.7% 0.232 318.1)
XYZxyz(30.3063, 16.3527, 60.5794)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37CF #57CF37
analogous
#6337CF #AF37CF #CF37A3
triadic
#AF37CF #CFAF37 #37CFAF
tetradic
#AF37CF #CF6337 #57CF37 #37A3CF
square
#AF37CF #CF6337 #57CF37 #37A3CF
split-complementary
#AF37CF #A3CF37 #37CF63
monochromatic
#5F1B71 #8827A2 #AF37CF #C368DB #D69AE7

Accessibility & contrast

On white

4.92
#AF37CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF37CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37CF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37CF#FFFFFF#000000##FFFFFF
##AF37CF1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#3E74CC
Tritanopia (blue-blind)
#AE5681
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af37cf;
/* rgb */ color: rgb(175, 55, 207);
/* oklch */ color: oklch(57.7% 0.232 318.1);
Tailwind
colors: {
  custom: {
    50: '#cb7ade',
    500: '#af37cf',
    950: '#000000',
  },
}
SCSS
$custom: #af37cf;
$custom-light: #cb7ade;
$custom-dark: #000000;
JSON
{
  "hex": "#af37cf",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 207
  },
  "hsl": {
    "h": 287.368,
    "s": 61.29,
    "l": 51.373
  },
  "oklch": {
    "l": 0.57699,
    "c": 0.23212,
    "h": 318.1
  },
  "luminance": 0.16351
}

Semantic roles & 50–950 ramp

primary
#AF37CF
secondary
#9ED28F
accent
#E44365
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF37CF

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

Preview Lab → · Contrast checker → · Palette generator →

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