#AB4BBB#AB4BBB

#AB4BBB is a mid, vivid purple. Relative luminance 0.173; OKLCH L 58.1% C 0.187 H 321.7°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB4BBB
RGBrgb(171, 75, 187)
HSLhsl(291, 45%, 51%)
HSVhsv(291, 60%, 73%)
CMYKcmyk(8.6%, 59.9%, 0%, 26.7%)
CIE-LABlab(48.61, 55.30, -41.71)
CIE-LCHlch(48.61, 69.27, 322.98°)
OKLaboklab(58.05% 0.1469 -0.116)
OKLCHoklch(58.05% 0.187 321.7)
XYZxyz(28.2793, 17.2793, 48.8497)
Luminance0.1728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4BBB #5BBB4B
analogous
#734BBB #AB4BBB #BB4B93
triadic
#AB4BBB #BBAB4B #4BBBAB
tetradic
#AB4BBB #BB734B #5BBB4B #4B93BB
square
#AB4BBB #BB734B #5BBB4B #4B93BB
split-complementary
#AB4BBB #93BB4B #4BBB73
monochromatic
#5C2665 #853792 #AB4BBB #C077CC #D4A4DD

Accessibility & contrast

On white

4.71
#AB4BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AB4BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4BBB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4BBB#FFFFFF#000000##FFFFFF
##AB4BBB1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346CBE
Deuteranopia (green-blind)
#5877B8
Tritanopia (blue-blind)
#AD5C7C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4bbb;
/* rgb */ color: rgb(171, 75, 187);
/* oklch */ color: oklch(58.1% 0.187 321.7);
Tailwind
colors: {
  custom: {
    50: '#c783d0',
    500: '#ab4bbb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4bbb;
$custom-light: #c783d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4bbb",
  "rgb": {
    "r": 171,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 291.429,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58052,
    "c": 0.18719,
    "h": 321.7
  },
  "luminance": 0.17278
}

Semantic roles & 50–950 ramp

primary
#AB4BBB
secondary
#9FCA98
accent
#D55366
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB4BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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