#AB45D8#AB45D8

#AB45D8 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.223 H 313.6°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AB45D8
RGBrgb(171, 69, 216)
HSLhsl(282, 65%, 56%)
HSVhsv(282, 68%, 85%)
CMYKcmyk(20.8%, 68.1%, 0%, 15.3%)
CIE-LABlab(49.34, 63.69, -57.24)
CIE-LCHlch(49.34, 85.64, 318.05°)
OKLaboklab(59.12% 0.1534 -0.1613)
OKLCHoklch(59.12% 0.223 313.6)
XYZxyz(31.3152, 17.8730, 66.7527)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45D8 #72D845
analogous
#6145D8 #AB45D8 #D845BB
triadic
#AB45D8 #D8AB45 #45D8AB
tetradic
#AB45D8 #D86145 #72D845 #45BBD8
square
#AB45D8 #D86145 #72D845 #45BBD8
split-complementary
#AB45D8 #BBD845 #45D861
monochromatic
#661C86 #8C27B9 #AB45D8 #C278E3 #D9AAED

Accessibility & contrast

On white

4.59
#AB45D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AB45D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45D8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45D8#FFFFFF#000000##FFFFFF
##AB45D81.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DC
Deuteranopia (green-blind)
#3B78D5
Tritanopia (blue-blind)
#A76389
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab45d8;
/* rgb */ color: rgb(171, 69, 216);
/* oklch */ color: oklch(59.1% 0.223 313.6);
Tailwind
colors: {
  custom: {
    50: '#c880e5',
    500: '#ab45d8',
    950: '#000000',
  },
}
SCSS
$custom: #ab45d8;
$custom-light: #c880e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45d8",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 281.633,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59123,
    "c": 0.2226,
    "h": 313.6
  },
  "luminance": 0.17872
}

Semantic roles & 50–950 ramp

primary
#AB45D8
secondary
#B1DB9E
accent
#E84073
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB45D8

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

Preview Lab → · Contrast checker → · Palette generator →

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