#AB30B6#AB30B6

#AB30B6 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 55.0% C 0.217 H 324.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AB30B6
RGBrgb(171, 48, 182)
HSLhsl(295, 58%, 45%)
HSVhsv(295, 74%, 71%)
CMYKcmyk(6%, 73.6%, 0%, 28.6%)
CIE-LABlab(44.45, 65.24, -45.41)
CIE-LCHlch(44.45, 79.49, 325.16°)
OKLaboklab(54.96% 0.1766 -0.1265)
OKLCHoklch(54.96% 0.217 324.4)
XYZxyz(26.2943, 14.1509, 45.5933)
Luminance0.1415 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB30B6 #3BB630
analogous
#6830B6 #AB30B6 #B6307E
triadic
#AB30B6 #B6AB30 #30B6AB
tetradic
#AB30B6 #B66830 #3BB630 #307EB6
square
#AB30B6 #B66830 #3BB630 #307EB6
split-complementary
#AB30B6 #7EB630 #30B668
monochromatic
#501655 #7D2386 #AB30B6 #C752D1 #D782DE

Accessibility & contrast

On white

5.48
#AB30B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AB30B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB30B6
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB30B6#FFFFFF#000000##FFFFFF
##AB30B61.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#4A6EB3
Tritanopia (blue-blind)
#AE4871
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab30b6;
/* rgb */ color: rgb(171, 48, 182);
/* oklch */ color: oklch(55.0% 0.217 324.4);
Tailwind
colors: {
  custom: {
    50: '#c875cc',
    500: '#ab30b6',
    950: '#000000',
  },
}
SCSS
$custom: #ab30b6;
$custom-light: #c875cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab30b6",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 295.075,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54963,
    "c": 0.21722,
    "h": 324.4
  },
  "luminance": 0.14149
}

Semantic roles & 50–950 ramp

primary
#AB30B6
secondary
#81C77B
accent
#E14653
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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