#AB55E2#AB55E2

#AB55E2 is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.6% C 0.212 H 309.7°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AB55E2
RGBrgb(171, 85, 226)
HSLhsl(277, 71%, 61%)
HSVhsv(277, 62%, 89%)
CMYKcmyk(24.3%, 62.4%, 0%, 11.4%)
CIE-LABlab(52.56, 58.61, -57.75)
CIE-LCHlch(52.56, 82.28, 315.42°)
OKLaboklab(61.64% 0.135 -0.1629)
OKLCHoklch(61.64% 0.212 309.7)
XYZxyz(33.7679, 20.6465, 74.1431)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB55E2 #8CE255
analogous
#6455E2 #AB55E2 #E255D2
triadic
#AB55E2 #E2AB55 #55E2AB
tetradic
#AB55E2 #E26455 #8CE255 #55D2E2
square
#AB55E2 #E26455 #8CE255 #55D2E2
split-complementary
#AB55E2 #D2E255 #55E264
monochromatic
#6D1BA1 #9024D5 #AB55E2 #C589EB #DFBEF4

Accessibility & contrast

On white

4.09
#AB55E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#AB55E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB55E2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB55E2#FFFFFF#000000##000000
##AB55E21.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#067AE6
Deuteranopia (green-blind)
#427FDF
Tritanopia (blue-blind)
#A37194
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab55e2;
/* rgb */ color: rgb(171, 85, 226);
/* oklch */ color: oklch(61.6% 0.212 309.7);
Tailwind
colors: {
  custom: {
    50: '#c88aec',
    500: '#ab55e2',
    950: '#000000',
  },
}
SCSS
$custom: #ab55e2;
$custom-light: #c88aec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab55e2",
  "rgb": {
    "r": 171,
    "g": 85,
    "b": 226
  },
  "hsl": {
    "h": 276.596,
    "s": 70.854,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61637,
    "c": 0.21156,
    "h": 309.7
  },
  "luminance": 0.20646
}

Semantic roles & 50–950 ramp

primary
#AB55E2
secondary
#C4E4AF
accent
#D3135E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB55E2

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

Preview Lab → · Contrast checker → · Palette generator →

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