#AB30A8#AB30A8

#AB30A8 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.1% C 0.206 H 329.0°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AB30A8
RGBrgb(171, 48, 168)
HSLhsl(301, 56%, 43%)
HSVhsv(301, 72%, 67%)
CMYKcmyk(0%, 71.9%, 1.8%, 32.9%)
CIE-LABlab(43.65, 62.88, -38.39)
CIE-LCHlch(43.65, 73.67, 328.59°)
OKLaboklab(54.14% 0.1768 -0.1061)
OKLCHoklch(54.14% 0.206 329)
XYZxyz(24.9192, 13.6008, 38.3509)
Luminance0.1360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB30A8 #30AB33
analogous
#7030AB #AB30A8 #AB306B
triadic
#AB30A8 #A8AB30 #30A8AB
tetradic
#AB30A8 #AB7030 #30AB33 #306BAB
square
#AB30A8 #AB7030 #30AB33 #306BAB
split-complementary
#AB30A8 #6BAB30 #30AB70
monochromatic
#4B154A #7B2379 #AB30A8 #CD4CC9 #DA7BD8

Accessibility & contrast

On white

5.65
#AB30A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AB30A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB30A8
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB30A8#FFFFFF#000000##FFFFFF
##AB30A81.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5DAB
Deuteranopia (green-blind)
#536DA5
Tritanopia (blue-blind)
#B14169
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab30a8;
/* rgb */ color: rgb(171, 48, 168);
/* oklch */ color: oklch(54.1% 0.206 329.0);
Tailwind
colors: {
  custom: {
    50: '#c875c2',
    500: '#ab30a8',
    950: '#000000',
  },
}
SCSS
$custom: #ab30a8;
$custom-light: #c875c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab30a8",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 168
  },
  "hsl": {
    "h": 301.463,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.5414,
    "c": 0.20617,
    "h": 329
  },
  "luminance": 0.13599
}

Semantic roles & 50–950 ramp

primary
#AB30A8
secondary
#74C376
accent
#DF4C48
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AB30A8

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

Preview Lab → · Contrast checker → · Palette generator →

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