#AF30B2#AF30B2

#AF30B2 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.3% C 0.216 H 327.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AF30B2
RGBrgb(175, 48, 178)
HSLhsl(299, 58%, 44%)
HSVhsv(299, 73%, 70%)
CMYKcmyk(1.7%, 73%, 0%, 30.2%)
CIE-LABlab(44.86, 65.41, -42.35)
CIE-LCHlch(44.86, 77.93, 327.08°)
OKLaboklab(55.31% 0.1811 -0.1175)
OKLCHoklch(55.31% 0.216 327)
XYZxyz(26.7716, 14.4441, 43.4888)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF30B2 #33B230
analogous
#6E30B2 #AF30B2 #B23074
triadic
#AF30B2 #B2AF30 #30B2AF
tetradic
#AF30B2 #B26E30 #33B230 #3074B2
square
#AF30B2 #B26E30 #33B230 #3074B2
split-complementary
#AF30B2 #74B230 #30B26E
monochromatic
#501652 #802382 #AF30B2 #CD50D0 #DB80DD

Accessibility & contrast

On white

5.40
#AF30B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AF30B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF30B2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF30B2#FFFFFF#000000##FFFFFF
##AF30B21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1060B6
Deuteranopia (green-blind)
#5170AF
Tritanopia (blue-blind)
#B4456F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af30b2;
/* rgb */ color: rgb(175, 48, 178);
/* oklch */ color: oklch(55.3% 0.216 327.0);
Tailwind
colors: {
  custom: {
    50: '#cb75c9',
    500: '#af30b2',
    950: '#000000',
  },
}
SCSS
$custom: #af30b2;
$custom-light: #cb75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af30b2",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 298.615,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5531,
    "c": 0.21589,
    "h": 327
  },
  "luminance": 0.14442
}

Semantic roles & 50–950 ramp

primary
#AF30B2
secondary
#7AC678
accent
#E1474B
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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