#AB30B1#AB30B1

#AB30B1 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.213 H 326.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AB30B1
RGBrgb(171, 48, 177)
HSLhsl(297, 57%, 44%)
HSVhsv(297, 73%, 69%)
CMYKcmyk(3.4%, 72.9%, 0%, 30.6%)
CIE-LABlab(44.16, 64.38, -42.92)
CIE-LCHlch(44.16, 77.38, 326.31°)
OKLaboklab(54.66% 0.1767 -0.1193)
OKLCHoklch(54.66% 0.213 326)
XYZxyz(25.7868, 13.9479, 42.9204)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB30B1 #36B130
analogous
#6B30B1 #AB30B1 #B13077
triadic
#AB30B1 #B1AB30 #30B1AB
tetradic
#AB30B1 #B16B30 #36B130 #3077B1
square
#AB30B1 #B16B30 #36B130 #3077B1
split-complementary
#AB30B1 #77B130 #30B16B
monochromatic
#4E1651 #7C2381 #AB30B1 #C94FCF #D87FDC

Accessibility & contrast

On white

5.54
#AB30B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AB30B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB30B1
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB30B1#FFFFFF#000000##FFFFFF
##AB30B11.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5FB5
Deuteranopia (green-blind)
#4D6EAE
Tritanopia (blue-blind)
#AF466E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab30b1;
/* rgb */ color: rgb(171, 48, 177);
/* oklch */ color: oklch(54.7% 0.213 326.0);
Tailwind
colors: {
  custom: {
    50: '#c875c9',
    500: '#ab30b1',
    950: '#000000',
  },
}
SCSS
$custom: #ab30b1;
$custom-light: #c875c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab30b1",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 177
  },
  "hsl": {
    "h": 297.209,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54662,
    "c": 0.21323,
    "h": 326
  },
  "luminance": 0.13946
}

Semantic roles & 50–950 ramp

primary
#AB30B1
secondary
#7BC578
accent
#E1474E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB30B1

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

Preview Lab → · Contrast checker → · Palette generator →

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