#AB54D7#AB54D7

#AB54D7 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.8% C 0.202 H 312.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AB54D7
RGBrgb(171, 84, 215)
HSLhsl(280, 62%, 59%)
HSVhsv(280, 61%, 84%)
CMYKcmyk(20.5%, 60.9%, 0%, 15.7%)
CIE-LABlab(51.73, 56.72, -52.84)
CIE-LCHlch(51.73, 77.52, 317.03°)
OKLaboklab(60.83% 0.1364 -0.1485)
OKLCHoklch(60.83% 0.202 312.6)
XYZxyz(32.2285, 19.9057, 66.4213)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54D7 #80D754
analogous
#6954D7 #AB54D7 #D754C1
triadic
#AB54D7 #D7AB54 #54D7AB
tetradic
#AB54D7 #D76954 #80D754 #54C1D7
square
#AB54D7 #D76954 #80D754 #54C1D7
split-complementary
#AB54D7 #C1D754 #54D769
monochromatic
#6A218F #8F2DC1 #AB54D7 #C386E3 #DCB7EE

Accessibility & contrast

On white

4.22
#AB54D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#AB54D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54D7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54D7#FFFFFF#000000##000000
##AB54D71.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2277DB
Deuteranopia (green-blind)
#4B7DD4
Tritanopia (blue-blind)
#A66C8E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab54d7;
/* rgb */ color: rgb(171, 84, 215);
/* oklch */ color: oklch(60.8% 0.202 312.6);
Tailwind
colors: {
  custom: {
    50: '#c789e4',
    500: '#ab54d7',
    950: '#000000',
  },
}
SCSS
$custom: #ab54d7;
$custom-light: #c789e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54d7",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 215
  },
  "hsl": {
    "h": 279.847,
    "s": 62.085,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60826,
    "c": 0.20168,
    "h": 312.6
  },
  "luminance": 0.19905
}

Semantic roles & 50–950 ramp

primary
#AB54D7
secondary
#BBDDA9
accent
#E54379
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB54D7

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

Preview Lab → · Contrast checker → · Palette generator →

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