#AB54CF#AB54CF

#AB54CF is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.3% C 0.194 H 314.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AB54CF
RGBrgb(171, 84, 207)
HSLhsl(282, 56%, 57%)
HSVhsv(282, 59%, 81%)
CMYKcmyk(17.4%, 59.4%, 0%, 18.8%)
CIE-LABlab(51.27, 55.04, -49.01)
CIE-LCHlch(51.27, 73.70, 318.31°)
OKLaboklab(60.35% 0.1364 -0.1373)
OKLCHoklch(60.35% 0.194 314.8)
XYZxyz(31.2256, 19.5046, 61.1393)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54CF #78CF54
analogous
#6E54CF #AB54CF #CF54B6
triadic
#AB54CF #CFAB54 #54CFAB
tetradic
#AB54CF #CF6E54 #78CF54 #54B6CF
square
#AB54CF #CF6E54 #78CF54 #54B6CF
split-complementary
#AB54CF #B6CF54 #54CF6E
monochromatic
#682584 #8E32B3 #AB54CF #C284DC #DAB4EA

Accessibility & contrast

On white

4.29
#AB54CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AB54CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54CF
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54CF#FFFFFF#000000##000000
##AB54CF1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E75D3
Deuteranopia (green-blind)
#527CCC
Tritanopia (blue-blind)
#A8698A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab54cf;
/* rgb */ color: rgb(171, 84, 207);
/* oklch */ color: oklch(60.3% 0.194 314.8);
Tailwind
colors: {
  custom: {
    50: '#c789de',
    500: '#ab54cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab54cf;
$custom-light: #c789de;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54cf",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 282.439,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60345,
    "c": 0.19354,
    "h": 314.8
  },
  "luminance": 0.19504
}

Semantic roles & 50–950 ramp

primary
#AB54CF
secondary
#B5D8A6
accent
#DF4875
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54CF

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

Preview Lab → · Contrast checker → · Palette generator →

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