#AB30B4#AB30B4

#AB30B4 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.8% C 0.216 H 325.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AB30B4
RGBrgb(171, 48, 180)
HSLhsl(296, 58%, 45%)
HSVhsv(296, 73%, 71%)
CMYKcmyk(5%, 73.3%, 0%, 29.4%)
CIE-LABlab(44.33, 64.90, -44.42)
CIE-LCHlch(44.33, 78.64, 325.61°)
OKLaboklab(54.84% 0.1766 -0.1236)
OKLCHoklch(54.84% 0.216 325)
XYZxyz(26.0891, 14.0688, 44.5126)
Luminance0.1407 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB30B4 #39B430
analogous
#6930B4 #AB30B4 #B4307B
triadic
#AB30B4 #B4AB30 #30B4AB
tetradic
#AB30B4 #B46930 #39B430 #307BB4
square
#AB30B4 #B46930 #39B430 #307BB4
split-complementary
#AB30B4 #7BB430 #30B469
monochromatic
#4F1653 #7D2384 #AB30B4 #C851D1 #D781DD

Accessibility & contrast

On white

5.51
#AB30B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB30B4
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB30B4#FFFFFF#000000##FFFFFF
##AB30B41.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#4B6EB1
Tritanopia (blue-blind)
#AF4770
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab30b4;
/* rgb */ color: rgb(171, 48, 180);
/* oklch */ color: oklch(54.8% 0.216 325.0);
Tailwind
colors: {
  custom: {
    50: '#c875cb',
    500: '#ab30b4',
    950: '#000000',
  },
}
SCSS
$custom: #ab30b4;
$custom-light: #c875cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab30b4",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 295.909,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54842,
    "c": 0.21562,
    "h": 325
  },
  "luminance": 0.14067
}

Semantic roles & 50–950 ramp

primary
#AB30B4
secondary
#7FC679
accent
#E14751
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB30B4

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

Preview Lab → · Contrast checker → · Palette generator →

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