#AB30B3#AB30B3

#AB30B3 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.215 H 325.3°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AB30B3
RGBrgb(171, 48, 179)
HSLhsl(296, 58%, 45%)
HSVhsv(296, 73%, 70%)
CMYKcmyk(4.5%, 73.2%, 0%, 29.8%)
CIE-LABlab(44.27, 64.72, -43.92)
CIE-LCHlch(44.27, 78.22, 325.84°)
OKLaboklab(54.78% 0.1767 -0.1222)
OKLCHoklch(54.78% 0.215 325.3)
XYZxyz(25.9876, 14.0282, 43.9780)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB30B3 #38B330
analogous
#6A30B3 #AB30B3 #B3307A
triadic
#AB30B3 #B3AB30 #30B3AB
tetradic
#AB30B3 #B36A30 #38B330 #307AB3
square
#AB30B3 #B36A30 #38B330 #307AB3
split-complementary
#AB30B3 #7AB330 #30B36A
monochromatic
#4F1652 #7D2383 #AB30B3 #C850D0 #D780DD

Accessibility & contrast

On white

5.52
#AB30B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AB30B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB30B3
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB30B3#FFFFFF#000000##FFFFFF
##AB30B31.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035FB7
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#AF466F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab30b3;
/* rgb */ color: rgb(171, 48, 179);
/* oklch */ color: oklch(54.8% 0.215 325.3);
Tailwind
colors: {
  custom: {
    50: '#c875ca',
    500: '#ab30b3',
    950: '#000000',
  },
}
SCSS
$custom: #ab30b3;
$custom-light: #c875ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab30b3",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 296.336,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54782,
    "c": 0.21483,
    "h": 325.3
  },
  "luminance": 0.14027
}

Semantic roles & 50–950 ramp

primary
#AB30B3
secondary
#7DC679
accent
#E14750
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB30B3

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

Preview Lab → · Contrast checker → · Palette generator →

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