#AF30B6#AF30B6

#AF30B6 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.219 H 325.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#AF30B6
RGBrgb(175, 48, 182)
HSLhsl(297, 58%, 45%)
HSVhsv(297, 74%, 71%)
CMYKcmyk(3.8%, 73.6%, 0%, 28.6%)
CIE-LABlab(45.09, 66.08, -44.34)
CIE-LCHlch(45.09, 79.58, 326.14°)
OKLaboklab(55.55% 0.181 -0.1233)
OKLCHoklch(55.55% 0.219 325.7)
XYZxyz(27.1791, 14.6071, 45.6348)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30B6 #37B630
analogous
#6C30B6 #AF30B6 #B6307A
triadic
#AF30B6 #B6AF30 #30B6AF
tetradic
#AF30B6 #B66C30 #37B630 #307AB6
square
#AF30B6 #B66C30 #37B630 #307AB6
split-complementary
#AF30B6 #7AB630 #30B66C
monochromatic
#521655 #802386 #AF30B6 #CB52D1 #D982DE

Accessibility & contrast

On white

5.36
#AF30B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#AF30B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30B6
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30B6#FFFFFF#000000##FFFFFF
##AF30B61.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0261BA
Deuteranopia (green-blind)
#4E70B3
Tritanopia (blue-blind)
#B34771
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af30b6;
/* rgb */ color: rgb(175, 48, 182);
/* oklch */ color: oklch(55.5% 0.219 325.7);
Tailwind
colors: {
  custom: {
    50: '#cb76cc',
    500: '#af30b6',
    950: '#000000',
  },
}
SCSS
$custom: #af30b6;
$custom-light: #cb76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af30b6",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 296.866,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55547,
    "c": 0.21902,
    "h": 325.7
  },
  "luminance": 0.14605
}

Semantic roles & 50–950 ramp

primary
#AF30B6
secondary
#7FC77B
accent
#E1464E
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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