#AB45CF#AB45CF

#AB45CF is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.5% C 0.214 H 316.0°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AB45CF
RGBrgb(171, 69, 207)
HSLhsl(284, 59%, 54%)
HSVhsv(284, 67%, 81%)
CMYKcmyk(17.4%, 66.7%, 0%, 18.8%)
CIE-LABlab(48.79, 61.88, -52.99)
CIE-LCHlch(48.79, 81.47, 319.43°)
OKLaboklab(58.55% 0.154 -0.1488)
OKLCHoklch(58.55% 0.214 316)
XYZxyz(30.1834, 17.4203, 60.7919)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45CF #69CF45
analogous
#6645CF #AB45CF #CF45AE
triadic
#AB45CF #CFAB45 #45CFAB
tetradic
#AB45CF #CF6645 #69CF45 #45AECF
square
#AB45CF #CF6645 #69CF45 #45AECF
split-complementary
#AB45CF #AECF45 #45CF66
monochromatic
#62207A #8A2CAB #AB45CF #C176DC #D7A6E8

Accessibility & contrast

On white

4.68
#AB45CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AB45CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45CF
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45CF#FFFFFF#000000##FFFFFF
##AB45CF1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#4477CC
Tritanopia (blue-blind)
#A95F85
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab45cf;
/* rgb */ color: rgb(171, 69, 207);
/* oklch */ color: oklch(58.5% 0.214 316.0);
Tailwind
colors: {
  custom: {
    50: '#c880de',
    500: '#ab45cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab45cf;
$custom-light: #c880de;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45cf",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 284.348,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58546,
    "c": 0.21416,
    "h": 316
  },
  "luminance": 0.17419
}

Semantic roles & 50–950 ramp

primary
#AB45CF
secondary
#AAD59B
accent
#E2466E
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB45CF

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

Preview Lab → · Contrast checker → · Palette generator →

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