#AB45D7#AB45D7

#AB45D7 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.222 H 313.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AB45D7
RGBrgb(171, 69, 215)
HSLhsl(282, 65%, 56%)
HSVhsv(282, 68%, 84%)
CMYKcmyk(20.5%, 67.9%, 0%, 15.7%)
CIE-LABlab(49.28, 63.49, -56.77)
CIE-LCHlch(49.28, 85.17, 318.19°)
OKLaboklab(59.06% 0.1535 -0.1599)
OKLCHoklch(59.06% 0.222 313.8)
XYZxyz(31.1864, 17.8215, 66.0739)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45D7 #71D745
analogous
#6245D7 #AB45D7 #D745BA
triadic
#AB45D7 #D7AB45 #45D7AB
tetradic
#AB45D7 #D76245 #71D745 #45BAD7
square
#AB45D7 #D76245 #71D745 #45BAD7
split-complementary
#AB45D7 #BAD745 #45D762
monochromatic
#661D85 #8C27B7 #AB45D7 #C277E2 #D8AAED

Accessibility & contrast

On white

4.60
#AB45D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AB45D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45D7
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45D7#FFFFFF#000000##FFFFFF
##AB45D71.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#3C78D4
Tritanopia (blue-blind)
#A76389
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab45d7;
/* rgb */ color: rgb(171, 69, 215);
/* oklch */ color: oklch(59.1% 0.222 313.8);
Tailwind
colors: {
  custom: {
    50: '#c880e4',
    500: '#ab45d7',
    950: '#000000',
  },
}
SCSS
$custom: #ab45d7;
$custom-light: #c880e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45d7",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 281.918,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59058,
    "c": 0.22165,
    "h": 313.8
  },
  "luminance": 0.1782
}

Semantic roles & 50–950 ramp

primary
#AB45D7
secondary
#B0DA9E
accent
#E84073
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB45D7

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

Preview Lab → · Contrast checker → · Palette generator →

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