#AF30C1#AF30C1

#AF30C1 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.228 H 322.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AF30C1
RGBrgb(175, 48, 193)
HSLhsl(293, 60%, 47%)
HSVhsv(293, 75%, 76%)
CMYKcmyk(9.3%, 75.1%, 0%, 24.3%)
CIE-LABlab(45.74, 67.98, -49.73)
CIE-LCHlch(45.74, 84.23, 323.81°)
OKLaboklab(56.22% 0.1804 -0.1391)
OKLCHoklch(56.22% 0.228 322.4)
XYZxyz(28.3608, 15.0798, 51.8586)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30C1 #42C130
analogous
#6730C1 #AF30C1 #C1308A
triadic
#AF30C1 #C1AF30 #30C1AF
tetradic
#AF30C1 #C16730 #42C130 #308AC1
square
#AF30C1 #C16730 #42C130 #308AC1
split-complementary
#AF30C1 #8AC130 #30C167
monochromatic
#56185F #832490 #AF30C1 #C659D6 #D78AE2

Accessibility & contrast

On white

5.23
#AF30C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#AF30C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30C1
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30C1#FFFFFF#000000##FFFFFF
##AF30C11.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C5
Deuteranopia (green-blind)
#4671BE
Tritanopia (blue-blind)
#B14C77
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af30c1;
/* rgb */ color: rgb(175, 48, 193);
/* oklch */ color: oklch(56.2% 0.228 322.4);
Tailwind
colors: {
  custom: {
    50: '#cb76d4',
    500: '#af30c1',
    950: '#000000',
  },
}
SCSS
$custom: #af30c1;
$custom-light: #cb76d4;
$custom-dark: #000000;
JSON
{
  "hex": "#af30c1",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 193
  },
  "hsl": {
    "h": 292.552,
    "s": 60.166,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5622,
    "c": 0.22777,
    "h": 322.4
  },
  "luminance": 0.15078
}

Semantic roles & 50–950 ramp

primary
#AF30C1
secondary
#8ACC81
accent
#E34458
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140914
muted
#827B83

Preview Lab

Preview with #AF30C1

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

Preview Lab → · Contrast checker → · Palette generator →

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