#AB55DC#AB55DC

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

Color values

HEX#AB55DC
RGBrgb(171, 85, 220)
HSLhsl(278, 66%, 60%)
HSVhsv(278, 61%, 86%)
CMYKcmyk(22.3%, 61.4%, 0%, 13.7%)
CIE-LABlab(52.20, 57.31, -54.93)
CIE-LCHlch(52.20, 79.38, 316.21°)
OKLaboklab(61.26% 0.1352 -0.1546)
OKLCHoklch(61.26% 0.205 311.2)
XYZxyz(32.9590, 20.3230, 69.8828)
Luminance0.2032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB55DC #86DC55
analogous
#6755DC #AB55DC #DC55CA
triadic
#AB55DC #DCAB55 #55DCAB
tetradic
#AB55DC #DC6755 #86DC55 #55CADC
square
#AB55DC #DC6755 #86DC55 #55CADC
split-complementary
#AB55DC #CADC55 #55DC67
monochromatic
#6C1F97 #902ACA #AB55DC #C488E6 #DDBBF1

Accessibility & contrast

On white

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

On black

5.06
#AB55DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB55DC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB55DC#FFFFFF#000000##000000
##AB55DC1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B78E0
Deuteranopia (green-blind)
#487ED9
Tritanopia (blue-blind)
#A56F91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab55dc;
/* rgb */ color: rgb(171, 85, 220);
/* oklch */ color: oklch(61.3% 0.205 311.2);
Tailwind
colors: {
  custom: {
    50: '#c789e7',
    500: '#ab55dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab55dc;
$custom-light: #c789e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab55dc",
  "rgb": {
    "r": 171,
    "g": 85,
    "b": 220
  },
  "hsl": {
    "h": 278.222,
    "s": 65.854,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61261,
    "c": 0.20538,
    "h": 311.2
  },
  "luminance": 0.20322
}

Semantic roles & 50–950 ramp

primary
#AB55DC
secondary
#BFE0AC
accent
#E93F7D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB55DC

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

Preview Lab → · Contrast checker → · Palette generator →

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