#AB45C8#AB45C8

#AB45C8 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.1% C 0.208 H 318.0°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AB45C8
RGBrgb(171, 69, 200)
HSLhsl(287, 54%, 53%)
HSVhsv(287, 66%, 78%)
CMYKcmyk(14.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(48.37, 60.50, -49.63)
CIE-LCHlch(48.37, 78.25, 320.64°)
OKLaboklab(58.11% 0.1543 -0.139)
OKLCHoklch(58.11% 0.208 318)
XYZxyz(29.3466, 17.0855, 56.3844)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45C8 #62C845
analogous
#6A45C8 #AB45C8 #C845A3
triadic
#AB45C8 #C8AB45 #45C8AB
tetradic
#AB45C8 #C86A45 #62C845 #45A3C8
square
#AB45C8 #C86A45 #62C845 #45A3C8
split-complementary
#AB45C8 #A3C845 #45C86A
monochromatic
#602171 #872FA0 #AB45C8 #C074D6 #D6A3E4

Accessibility & contrast

On white

4.75
#AB45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AB45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45C8
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45C8#FFFFFF#000000##FFFFFF
##AB45C81.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#136CCC
Deuteranopia (green-blind)
#4A76C5
Tritanopia (blue-blind)
#AA5D81
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab45c8;
/* rgb */ color: rgb(171, 69, 200);
/* oklch */ color: oklch(58.1% 0.208 318.0);
Tailwind
colors: {
  custom: {
    50: '#c780d9',
    500: '#ab45c8',
    950: '#000000',
  },
}
SCSS
$custom: #ab45c8;
$custom-light: #c780d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45c8",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 286.718,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58112,
    "c": 0.20765,
    "h": 318
  },
  "luminance": 0.17084
}

Semantic roles & 50–950 ramp

primary
#AB45C8
secondary
#A5D198
accent
#DE4A6B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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