#AB45D2#AB45D2

#AB45D2 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.7% C 0.217 H 315.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB45D2
RGBrgb(171, 69, 210)
HSLhsl(283, 61%, 55%)
HSVhsv(283, 67%, 82%)
CMYKcmyk(18.6%, 67.1%, 0%, 17.6%)
CIE-LABlab(48.97, 62.48, -54.41)
CIE-LCHlch(48.97, 82.85, 318.95°)
OKLaboklab(58.74% 0.1538 -0.153)
OKLCHoklch(58.74% 0.217 315.1)
XYZxyz(30.5537, 17.5684, 62.7418)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45D2 #6CD245
analogous
#6445D2 #AB45D2 #D245B3
triadic
#AB45D2 #D2AB45 #45D2AB
tetradic
#AB45D2 #D26445 #6CD245 #45B3D2
square
#AB45D2 #D26445 #6CD245 #45B3D2
split-complementary
#AB45D2 #B3D245 #45D264
monochromatic
#641F7E #8B2AAF #AB45D2 #C176DE #D8A8EA

Accessibility & contrast

On white

4.65
#AB45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AB45D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45D2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45D2#FFFFFF#000000##FFFFFF
##AB45D21.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#4277CF
Tritanopia (blue-blind)
#A86186
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab45d2;
/* rgb */ color: rgb(171, 69, 210);
/* oklch */ color: oklch(58.7% 0.217 315.1);
Tailwind
colors: {
  custom: {
    50: '#c880e0',
    500: '#ab45d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab45d2;
$custom-light: #c880e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45d2",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 283.404,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58736,
    "c": 0.21697,
    "h": 315.1
  },
  "luminance": 0.17567
}

Semantic roles & 50–950 ramp

primary
#AB45D2
secondary
#ACD79C
accent
#E44470
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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