#AF37A7#AF37A7

#AF37A7 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.3% C 0.199 H 330.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AF37A7
RGBrgb(175, 55, 167)
HSLhsl(304, 52%, 45%)
HSVhsv(304, 69%, 69%)
CMYKcmyk(0%, 68.6%, 4.6%, 31.4%)
CIE-LABlab(45.13, 61.15, -35.41)
CIE-LCHlch(45.13, 70.66, 329.92°)
OKLaboklab(55.31% 0.1739 -0.0975)
OKLCHoklch(55.31% 0.199 330.7)
XYZxyz(26.0203, 14.6383, 38.0067)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37A7 #37AF3F
analogous
#7B37AF #AF37A7 #AF376B
triadic
#AF37A7 #A7AF37 #37A7AF
tetradic
#AF37A7 #AF7B37 #37AF3F #376BAF
square
#AF37A7 #AF7B37 #37AF3F #376BAF
split-complementary
#AF37A7 #6BAF37 #37AF7B
monochromatic
#521A4E #80287B #AF37A7 #CB59C3 #D987D4

Accessibility & contrast

On white

5.35
#AF37A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AF37A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37A7
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37A7#FFFFFF#000000##FFFFFF
##AF37A71.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60AA
Deuteranopia (green-blind)
#5A71A4
Tritanopia (blue-blind)
#B6456B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af37a7;
/* rgb */ color: rgb(175, 55, 167);
/* oklch */ color: oklch(55.3% 0.199 330.7);
Tailwind
colors: {
  custom: {
    50: '#ca78c1',
    500: '#af37a7',
    950: '#000000',
  },
}
SCSS
$custom: #af37a7;
$custom-light: #ca78c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af37a7",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 167
  },
  "hsl": {
    "h": 304,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55314,
    "c": 0.19931,
    "h": 330.7
  },
  "luminance": 0.14636
}

Semantic roles & 50–950 ramp

primary
#AF37A7
secondary
#7FC383
accent
#DC564C
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF37A7

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

Preview Lab → · Contrast checker → · Palette generator →

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