#AB45C2#AB45C2

#AB45C2 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.8% C 0.202 H 319.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AB45C2
RGBrgb(171, 69, 194)
HSLhsl(289, 51%, 52%)
HSVhsv(289, 64%, 76%)
CMYKcmyk(11.9%, 64.4%, 0%, 23.9%)
CIE-LABlab(48.02, 59.33, -46.71)
CIE-LCHlch(48.02, 75.51, 321.79°)
OKLaboklab(57.75% 0.1543 -0.1305)
OKLCHoklch(57.75% 0.202 319.8)
XYZxyz(28.6591, 16.8105, 52.7636)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45C2 #5CC245
analogous
#6D45C2 #AB45C2 #C2459B
triadic
#AB45C2 #C2AB45 #45C2AB
tetradic
#AB45C2 #C26D45 #5CC245 #459BC2
square
#AB45C2 #C26D45 #5CC245 #459BC2
split-complementary
#AB45C2 #9BC245 #45C26D
monochromatic
#5D236A #853298 #AB45C2 #C073D1 #D5A1E0

Accessibility & contrast

On white

4.81
#AB45C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AB45C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45C2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45C2#FFFFFF#000000##FFFFFF
##AB45C21.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206BC6
Deuteranopia (green-blind)
#4F76BF
Tritanopia (blue-blind)
#AC5A7E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab45c2;
/* rgb */ color: rgb(171, 69, 194);
/* oklch */ color: oklch(57.8% 0.202 319.8);
Tailwind
colors: {
  custom: {
    50: '#c780d5',
    500: '#ab45c2',
    950: '#000000',
  },
}
SCSS
$custom: #ab45c2;
$custom-light: #c780d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45c2",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 288.96,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5775,
    "c": 0.20212,
    "h": 319.8
  },
  "luminance": 0.16809
}

Semantic roles & 50–950 ramp

primary
#AB45C2
secondary
#A0CD96
accent
#DA4E68
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB45C2

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

Preview Lab → · Contrast checker → · Palette generator →

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