#AF30C2#AF30C2

#AF30C2 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.3% C 0.229 H 322.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AF30C2
RGBrgb(175, 48, 194)
HSLhsl(292, 60%, 47%)
HSVhsv(292, 75%, 76%)
CMYKcmyk(9.8%, 75.3%, 0%, 23.9%)
CIE-LABlab(45.80, 68.16, -50.22)
CIE-LCHlch(45.80, 84.66, 323.62°)
OKLaboklab(56.28% 0.1803 -0.1405)
OKLCHoklch(56.28% 0.229 322.1)
XYZxyz(28.4727, 15.1245, 52.4481)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30C2 #43C230
analogous
#6630C2 #AF30C2 #C2308C
triadic
#AF30C2 #C2AF30 #30C2AF
tetradic
#AF30C2 #C26630 #43C230 #308CC2
square
#AF30C2 #C26630 #43C230 #308CC2
split-complementary
#AF30C2 #8CC230 #30C266
monochromatic
#561860 #832491 #AF30C2 #C659D6 #D78AE2

Accessibility & contrast

On white

5.22
#AF30C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF30C2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30C2#FFFFFF#000000##FFFFFF
##AF30C21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#4571BF
Tritanopia (blue-blind)
#B14D78
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af30c2;
/* rgb */ color: rgb(175, 48, 194);
/* oklch */ color: oklch(56.3% 0.229 322.1);
Tailwind
colors: {
  custom: {
    50: '#cb76d5',
    500: '#af30c2',
    950: '#000000',
  },
}
SCSS
$custom: #af30c2;
$custom-light: #cb76d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af30c2",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 194
  },
  "hsl": {
    "h": 292.192,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56283,
    "c": 0.22858,
    "h": 322.1
  },
  "luminance": 0.15123
}

Semantic roles & 50–950 ramp

primary
#AF30C2
secondary
#8BCC82
accent
#E34459
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #AF30C2

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

Preview Lab → · Contrast checker → · Palette generator →

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