#AB45CB#AB45CB

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

Color values

HEX#AB45CB
RGBrgb(171, 69, 203)
HSLhsl(286, 56%, 53%)
HSVhsv(286, 66%, 80%)
CMYKcmyk(15.8%, 66%, 0%, 20.4%)
CIE-LABlab(48.55, 61.08, -51.07)
CIE-LCHlch(48.55, 79.62, 320.10°)
OKLaboklab(58.3% 0.1542 -0.1432)
OKLCHoklch(58.3% 0.21 317.1)
XYZxyz(29.7006, 17.2272, 58.2490)
Luminance0.1723 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45CB #65CB45
analogous
#6845CB #AB45CB #CB45A8
triadic
#AB45CB #CBAB45 #45CBAB
tetradic
#AB45CB #CB6845 #65CB45 #45A8CB
square
#AB45CB #CB6845 #65CB45 #45A8CB
split-complementary
#AB45CB #A8CB45 #45CB68
monochromatic
#612175 #882EA5 #AB45CB #C175D8 #D6A5E6

Accessibility & contrast

On white

4.72
#AB45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AB45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45CB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45CB#FFFFFF#000000##FFFFFF
##AB45CB1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086DCF
Deuteranopia (green-blind)
#4876C8
Tritanopia (blue-blind)
#AA5E82
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab45cb;
/* rgb */ color: rgb(171, 69, 203);
/* oklch */ color: oklch(58.3% 0.210 317.1);
Tailwind
colors: {
  custom: {
    50: '#c880db',
    500: '#ab45cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab45cb;
$custom-light: #c880db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45cb",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 285.672,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58296,
    "c": 0.21043,
    "h": 317.1
  },
  "luminance": 0.17226
}

Semantic roles & 50–950 ramp

primary
#AB45CB
secondary
#A7D399
accent
#E0486C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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