#AB45D5#AB45D5

#AB45D5 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.9% C 0.220 H 314.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AB45D5
RGBrgb(171, 69, 213)
HSLhsl(283, 63%, 55%)
HSVhsv(283, 68%, 84%)
CMYKcmyk(19.7%, 67.6%, 0%, 16.5%)
CIE-LABlab(49.15, 63.08, -55.83)
CIE-LCHlch(49.15, 84.24, 318.49°)
OKLaboklab(58.93% 0.1536 -0.1572)
OKLCHoklch(58.93% 0.22 314.3)
XYZxyz(30.9309, 17.7193, 64.7287)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45D5 #6FD545
analogous
#6345D5 #AB45D5 #D545B7
triadic
#AB45D5 #D5AB45 #45D5AB
tetradic
#AB45D5 #D56345 #6FD545 #45B7D5
square
#AB45D5 #D56345 #6FD545 #45B7D5
split-complementary
#AB45D5 #B7D545 #45D563
monochromatic
#651D82 #8B29B4 #AB45D5 #C277E0 #D8A9EC

Accessibility & contrast

On white

4.62
#AB45D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AB45D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45D5
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45D5#FFFFFF#000000##FFFFFF
##AB45D51.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#3F77D2
Tritanopia (blue-blind)
#A76288
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab45d5;
/* rgb */ color: rgb(171, 69, 213);
/* oklch */ color: oklch(58.9% 0.220 314.3);
Tailwind
colors: {
  custom: {
    50: '#c880e3',
    500: '#ab45d5',
    950: '#000000',
  },
}
SCSS
$custom: #ab45d5;
$custom-light: #c880e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45d5",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 282.5,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.58929,
    "c": 0.21978,
    "h": 314.3
  },
  "luminance": 0.17718
}

Semantic roles & 50–950 ramp

primary
#AB45D5
secondary
#AED99D
accent
#E64272
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AB45D5

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

Preview Lab → · Contrast checker → · Palette generator →

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