#AF31C8#AF31C8

#AF31C8 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.7% C 0.232 H 320.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AF31C8
RGBrgb(175, 49, 200)
HSLhsl(290, 61%, 49%)
HSVhsv(290, 76%, 78%)
CMYKcmyk(12.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(46.29, 68.90, -52.93)
CIE-LCHlch(46.29, 86.88, 322.47°)
OKLaboklab(56.75% 0.1789 -0.1484)
OKLCHoklch(56.75% 0.232 320.3)
XYZxyz(29.2016, 15.4823, 56.0826)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF31C8 #4AC831
analogous
#6431C8 #AF31C8 #C83196
triadic
#AF31C8 #C8AF31 #31C8AF
tetradic
#AF31C8 #C86431 #4AC831 #3196C8
square
#AF31C8 #C86431 #4AC831 #3196C8
split-complementary
#AF31C8 #96C831 #31C864
monochromatic
#591966 #842597 #AF31C8 #C45FD8 #D690E4

Accessibility & contrast

On white

5.13
#AF31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AF31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF31C8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF31C8#FFFFFF#000000##FFFFFF
##AF31C81.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#4172C5
Tritanopia (blue-blind)
#B0507B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af31c8;
/* rgb */ color: rgb(175, 49, 200);
/* oklch */ color: oklch(56.7% 0.232 320.3);
Tailwind
colors: {
  custom: {
    50: '#cb77d9',
    500: '#af31c8',
    950: '#000000',
  },
}
SCSS
$custom: #af31c8;
$custom-light: #cb77d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af31c8",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 290.066,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56745,
    "c": 0.23245,
    "h": 320.3
  },
  "luminance": 0.15481
}

Semantic roles & 50–950 ramp

primary
#AF31C8
secondary
#92CE86
accent
#E4445E
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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