#AF30C9#AF30C9

#AF30C9 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.7% C 0.234 H 320.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF30C9
RGBrgb(175, 48, 201)
HSLhsl(290, 61%, 49%)
HSVhsv(290, 76%, 79%)
CMYKcmyk(12.9%, 76.1%, 0%, 21.2%)
CIE-LABlab(46.24, 69.40, -53.58)
CIE-LCHlch(46.24, 87.68, 322.33°)
OKLaboklab(56.73% 0.1796 -0.1503)
OKLCHoklch(56.73% 0.234 320.1)
XYZxyz(29.2775, 15.4464, 56.6863)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30C9 #4AC930
analogous
#6330C9 #AF30C9 #C93097
triadic
#AF30C9 #C9AF30 #30C9AF
tetradic
#AF30C9 #C96330 #4AC930 #3097C9
square
#AF30C9 #C96330 #4AC930 #3097C9
split-complementary
#AF30C9 #97C930 #30C963
monochromatic
#591866 #842498 #AF30C9 #C45ED8 #D68FE4

Accessibility & contrast

On white

5.14
#AF30C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AF30C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30C9
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30C9#FFFFFF#000000##FFFFFF
##AF30C91.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CD
Deuteranopia (green-blind)
#3F72C6
Tritanopia (blue-blind)
#B0507C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af30c9;
/* rgb */ color: rgb(175, 48, 201);
/* oklch */ color: oklch(56.7% 0.234 320.1);
Tailwind
colors: {
  custom: {
    50: '#cb76da',
    500: '#af30c9',
    950: '#000000',
  },
}
SCSS
$custom: #af30c9;
$custom-light: #cb76da;
$custom-dark: #000000;
JSON
{
  "hex": "#af30c9",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 201
  },
  "hsl": {
    "h": 289.804,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56731,
    "c": 0.23424,
    "h": 320.1
  },
  "luminance": 0.15445
}

Semantic roles & 50–950 ramp

primary
#AF30C9
secondary
#92CF86
accent
#E5435F
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF30C9

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

Preview Lab → · Contrast checker → · Palette generator →

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