#AB30B2#AB30B2

#AB30B2 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.214 H 325.7°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AB30B2
RGBrgb(171, 48, 178)
HSLhsl(297, 58%, 44%)
HSVhsv(297, 73%, 70%)
CMYKcmyk(3.9%, 73%, 0%, 30.2%)
CIE-LABlab(44.22, 64.55, -43.42)
CIE-LCHlch(44.22, 77.80, 326.07°)
OKLaboklab(54.72% 0.1767 -0.1208)
OKLCHoklch(54.72% 0.214 325.7)
XYZxyz(25.8869, 13.9879, 43.4473)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB30B2 #37B230
analogous
#6A30B2 #AB30B2 #B23078
triadic
#AB30B2 #B2AB30 #30B2AB
tetradic
#AB30B2 #B26A30 #37B230 #3078B2
square
#AB30B2 #B26A30 #37B230 #3078B2
split-complementary
#AB30B2 #78B230 #30B26A
monochromatic
#4E1652 #7D2382 #AB30B2 #C950D0 #D880DD

Accessibility & contrast

On white

5.53
#AB30B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AB30B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB30B2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB30B2#FFFFFF#000000##FFFFFF
##AB30B21.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065FB6
Deuteranopia (green-blind)
#4D6EAF
Tritanopia (blue-blind)
#AF466F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab30b2;
/* rgb */ color: rgb(171, 48, 178);
/* oklch */ color: oklch(54.7% 0.214 325.7);
Tailwind
colors: {
  custom: {
    50: '#c875c9',
    500: '#ab30b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab30b2;
$custom-light: #c875c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab30b2",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 296.769,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54722,
    "c": 0.21403,
    "h": 325.7
  },
  "luminance": 0.13986
}

Semantic roles & 50–950 ramp

primary
#AB30B2
secondary
#7CC678
accent
#E1474F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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