#AB45D1#AB45D1

#AB45D1 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.7% C 0.216 H 315.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AB45D1
RGBrgb(171, 69, 209)
HSLhsl(284, 60%, 55%)
HSVhsv(284, 67%, 82%)
CMYKcmyk(18.2%, 67%, 0%, 18%)
CIE-LABlab(48.91, 62.28, -53.94)
CIE-LCHlch(48.91, 82.39, 319.10°)
OKLaboklab(58.67% 0.1539 -0.1516)
OKLCHoklch(58.67% 0.216 315.4)
XYZxyz(30.4295, 17.5187, 62.0878)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45D1 #6BD145
analogous
#6545D1 #AB45D1 #D145B1
triadic
#AB45D1 #D1AB45 #45D1AB
tetradic
#AB45D1 #D16545 #6BD145 #45B1D1
square
#AB45D1 #D16545 #6BD145 #45B1D1
split-complementary
#AB45D1 #B1D145 #45D165
monochromatic
#631F7D #8A2BAE #AB45D1 #C176DD #D7A7E9

Accessibility & contrast

On white

4.66
#AB45D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AB45D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45D1
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45D1#FFFFFF#000000##FFFFFF
##AB45D11.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED5
Deuteranopia (green-blind)
#4377CE
Tritanopia (blue-blind)
#A86086
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab45d1;
/* rgb */ color: rgb(171, 69, 209);
/* oklch */ color: oklch(58.7% 0.216 315.4);
Tailwind
colors: {
  custom: {
    50: '#c880e0',
    500: '#ab45d1',
    950: '#000000',
  },
}
SCSS
$custom: #ab45d1;
$custom-light: #c880e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45d1",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 283.714,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.58673,
    "c": 0.21603,
    "h": 315.4
  },
  "luminance": 0.17518
}

Semantic roles & 50–950 ramp

primary
#AB45D1
secondary
#ABD79B
accent
#E34470
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB45D1

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

Preview Lab → · Contrast checker → · Palette generator →

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