#AB30A2#AB30A2

#AB30A2 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.8% C 0.202 H 331.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AB30A2
RGBrgb(171, 48, 162)
HSLhsl(304, 56%, 43%)
HSVhsv(304, 72%, 67%)
CMYKcmyk(0%, 71.9%, 5.3%, 32.9%)
CIE-LABlab(43.33, 61.91, -35.32)
CIE-LCHlch(43.33, 71.28, 330.29°)
OKLaboklab(53.81% 0.1766 -0.0972)
OKLCHoklch(53.81% 0.202 331.2)
XYZxyz(24.3731, 13.3824, 35.4748)
Luminance0.1338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB30A2 #30AB39
analogous
#7630AB #AB30A2 #AB3065
triadic
#AB30A2 #A2AB30 #30A2AB
tetradic
#AB30A2 #AB7630 #30AB39 #3065AB
square
#AB30A2 #AB7630 #30AB39 #3065AB
split-complementary
#AB30A2 #65AB30 #30AB76
monochromatic
#4B1547 #7B2375 #AB30A2 #CD4CC3 #DA7BD3

Accessibility & contrast

On white

5.71
#AB30A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AB30A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB30A2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB30A2#FFFFFF#000000##FFFFFF
##AB30A21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265BA5
Deuteranopia (green-blind)
#566C9F
Tritanopia (blue-blind)
#B23E66
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ab30a2;
/* rgb */ color: rgb(171, 48, 162);
/* oklch */ color: oklch(53.8% 0.202 331.2);
Tailwind
colors: {
  custom: {
    50: '#c874be',
    500: '#ab30a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab30a2;
$custom-light: #c874be;
$custom-dark: #000000;
JSON
{
  "hex": "#ab30a2",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 304.39,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53805,
    "c": 0.20159,
    "h": 331.2
  },
  "luminance": 0.1338
}

Semantic roles & 50–950 ramp

primary
#AB30A2
secondary
#74C37A
accent
#DF5348
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AB30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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