#AB54DF#AB54DF

#AB54DF is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.3% C 0.210 H 310.5°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AB54DF
RGBrgb(171, 84, 223)
HSLhsl(278, 68%, 60%)
HSVhsv(278, 62%, 87%)
CMYKcmyk(23.3%, 62.3%, 0%, 12.5%)
CIE-LABlab(52.20, 58.43, -56.62)
CIE-LCHlch(52.20, 81.37, 315.90°)
OKLaboklab(61.32% 0.1363 -0.1596)
OKLCHoklch(61.32% 0.21 310.5)
XYZxyz(33.2817, 20.3270, 71.9680)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54DF #88DF54
analogous
#6554DF #AB54DF #DF54CD
triadic
#AB54DF #DFAB54 #54DFAB
tetradic
#AB54DF #DF6554 #88DF54 #54CDDF
square
#AB54DF #DF6554 #88DF54 #54CDDF
split-complementary
#AB54DF #CDDF54 #54DF65
monochromatic
#6C1D9C #9027CF #AB54DF #C488E9 #DEBBF2

Accessibility & contrast

On white

4.15
#AB54DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#AB54DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54DF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54DF#FFFFFF#000000##000000
##AB54DF1.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D79E3
Deuteranopia (green-blind)
#447EDC
Tritanopia (blue-blind)
#A46F92
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab54df;
/* rgb */ color: rgb(171, 84, 223);
/* oklch */ color: oklch(61.3% 0.210 310.5);
Tailwind
colors: {
  custom: {
    50: '#c889ea',
    500: '#ab54df',
    950: '#000000',
  },
}
SCSS
$custom: #ab54df;
$custom-light: #c889ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54df",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 223
  },
  "hsl": {
    "h": 277.554,
    "s": 68.473,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61322,
    "c": 0.20985,
    "h": 310.5
  },
  "luminance": 0.20326
}

Semantic roles & 50–950 ramp

primary
#AB54DF
secondary
#C1E2AD
accent
#D0155B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB54DF

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

Preview Lab → · Contrast checker → · Palette generator →

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