#AB30AB#AB30AB

#AB30AB is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.208 H 328.0°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AB30AB
RGBrgb(171, 48, 171)
HSLhsl(300, 56%, 43%)
HSVhsv(300, 72%, 67%)
CMYKcmyk(0%, 71.9%, 0%, 32.9%)
CIE-LABlab(43.82, 63.38, -39.91)
CIE-LCHlch(43.82, 74.90, 327.80°)
OKLaboklab(54.31% 0.1768 -0.1105)
OKLCHoklch(54.31% 0.209 328)
XYZxyz(25.2019, 13.7139, 39.8399)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB30AB #30AB30
analogous
#6D30AB #AB30AB #AB306D
triadic
#AB30AB #ABAB30 #30ABAB
tetradic
#AB30AB #AB6D30 #30AB30 #306DAB
square
#AB30AB #AB6D30 #30AB30 #306DAB
split-complementary
#AB30AB #6DAB30 #30AB6D
monochromatic
#4B154B #7B237B #AB30AB #CD4CCD #DA7BDA

Accessibility & contrast

On white

5.61
#AB30AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AB30AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB30AB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB30AB#FFFFFF#000000##FFFFFF
##AB30AB1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195DAE
Deuteranopia (green-blind)
#516DA8
Tritanopia (blue-blind)
#B0436B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab30ab;
/* rgb */ color: rgb(171, 48, 171);
/* oklch */ color: oklch(54.3% 0.208 328.0);
Tailwind
colors: {
  custom: {
    50: '#c875c4',
    500: '#ab30ab',
    950: '#000000',
  },
}
SCSS
$custom: #ab30ab;
$custom-light: #c875c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab30ab",
  "rgb": {
    "r": 171,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 300,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54311,
    "c": 0.2085,
    "h": 328
  },
  "luminance": 0.13712
}

Semantic roles & 50–950 ramp

primary
#AB30AB
secondary
#74C374
accent
#DF4848
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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