#AB45CA#AB45CA

#AB45CA is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.2% C 0.210 H 317.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AB45CA
RGBrgb(171, 69, 202)
HSLhsl(286, 56%, 53%)
HSVhsv(286, 66%, 79%)
CMYKcmyk(15.3%, 65.8%, 0%, 20.8%)
CIE-LABlab(48.49, 60.89, -50.59)
CIE-LCHlch(48.49, 79.16, 320.28°)
OKLaboklab(58.24% 0.1542 -0.1418)
OKLCHoklch(58.24% 0.21 317.4)
XYZxyz(29.5818, 17.1796, 57.6234)
Luminance0.1718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45CA #64CA45
analogous
#6845CA #AB45CA #CA45A6
triadic
#AB45CA #CAAB45 #45CAAB
tetradic
#AB45CA #CA6845 #64CA45 #45A6CA
square
#AB45CA #CA6845 #64CA45 #45A6CA
split-complementary
#AB45CA #A6CA45 #45CA68
monochromatic
#602174 #882FA3 #AB45CA #C175D8 #D6A4E5

Accessibility & contrast

On white

4.73
#AB45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AB45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45CA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45CA#FFFFFF#000000##FFFFFF
##AB45CA1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C6DCE
Deuteranopia (green-blind)
#4976C7
Tritanopia (blue-blind)
#AA5D82
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab45ca;
/* rgb */ color: rgb(171, 69, 202);
/* oklch */ color: oklch(58.2% 0.210 317.4);
Tailwind
colors: {
  custom: {
    50: '#c880db',
    500: '#ab45ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab45ca;
$custom-light: #c880db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45ca",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 286.015,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58235,
    "c": 0.20951,
    "h": 317.4
  },
  "luminance": 0.17178
}

Semantic roles & 50–950 ramp

primary
#AB45CA
secondary
#A6D299
accent
#DF496C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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