#AB45D6#AB45D6

#AB45D6 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.0% C 0.221 H 314.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AB45D6
RGBrgb(171, 69, 214)
HSLhsl(282, 64%, 55%)
HSVhsv(282, 68%, 84%)
CMYKcmyk(20.1%, 67.8%, 0%, 16.1%)
CIE-LABlab(49.22, 63.29, -56.30)
CIE-LCHlch(49.22, 84.71, 318.34°)
OKLaboklab(58.99% 0.1535 -0.1586)
OKLCHoklch(58.99% 0.221 314.1)
XYZxyz(31.0583, 17.7702, 65.3992)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45D6 #70D645
analogous
#6245D6 #AB45D6 #D645B8
triadic
#AB45D6 #D6AB45 #45D6AB
tetradic
#AB45D6 #D66245 #70D645 #45B8D6
square
#AB45D6 #D66245 #70D645 #45B8D6
split-complementary
#AB45D6 #B8D645 #45D662
monochromatic
#651D84 #8C28B6 #AB45D6 #C277E1 #D8A9EC

Accessibility & contrast

On white

4.61
#AB45D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#AB45D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45D6
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45D6#FFFFFF#000000##FFFFFF
##AB45D61.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDA
Deuteranopia (green-blind)
#3E77D3
Tritanopia (blue-blind)
#A76288
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab45d6;
/* rgb */ color: rgb(171, 69, 214);
/* oklch */ color: oklch(59.0% 0.221 314.1);
Tailwind
colors: {
  custom: {
    50: '#c880e3',
    500: '#ab45d6',
    950: '#000000',
  },
}
SCSS
$custom: #ab45d6;
$custom-light: #c880e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45d6",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 282.207,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58993,
    "c": 0.22072,
    "h": 314.1
  },
  "luminance": 0.17769
}

Semantic roles & 50–950 ramp

primary
#AB45D6
secondary
#AFDA9D
accent
#E74172
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AB45D6

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

Preview Lab → · Contrast checker → · Palette generator →

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