#AB45CD#AB45CD

#AB45CD is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.4% C 0.212 H 316.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AB45CD
RGBrgb(171, 69, 205)
HSLhsl(285, 58%, 54%)
HSVhsv(285, 66%, 80%)
CMYKcmyk(16.6%, 66.3%, 0%, 19.6%)
CIE-LABlab(48.66, 61.48, -52.03)
CIE-LCHlch(48.66, 80.54, 319.76°)
OKLaboklab(58.42% 0.1541 -0.1461)
OKLCHoklch(58.42% 0.212 316.5)
XYZxyz(29.9405, 17.3231, 59.5123)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB45CD #67CD45
analogous
#6745CD #AB45CD #CD45AB
triadic
#AB45CD #CDAB45 #45CDAB
tetradic
#AB45CD #CD6745 #67CD45 #45ABCD
square
#AB45CD #CD6745 #67CD45 #45ABCD
split-complementary
#AB45CD #ABCD45 #45CD67
monochromatic
#622077 #892DA8 #AB45CD #C175DA #D7A5E7

Accessibility & contrast

On white

4.70
#AB45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AB45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB45CD
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB45CD#FFFFFF#000000##FFFFFF
##AB45CD1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#4677CA
Tritanopia (blue-blind)
#A95F83
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab45cd;
/* rgb */ color: rgb(171, 69, 205);
/* oklch */ color: oklch(58.4% 0.212 316.5);
Tailwind
colors: {
  custom: {
    50: '#c880dd',
    500: '#ab45cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab45cd;
$custom-light: #c880dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab45cd",
  "rgb": {
    "r": 171,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 285,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.58421,
    "c": 0.21229,
    "h": 316.5
  },
  "luminance": 0.17322
}

Semantic roles & 50–950 ramp

primary
#AB45CD
secondary
#A8D49A
accent
#E1476D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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