#AB54E2#AB54E2

#AB54E2 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.5% C 0.213 H 309.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AB54E2
RGBrgb(171, 84, 226)
HSLhsl(277, 71%, 61%)
HSVhsv(277, 63%, 89%)
CMYKcmyk(24.3%, 62.8%, 0%, 11.4%)
CIE-LABlab(52.39, 59.08, -58.03)
CIE-LCHlch(52.39, 82.81, 315.52°)
OKLaboklab(61.51% 0.1362 -0.1637)
OKLCHoklch(61.51% 0.213 309.8)
XYZxyz(33.6897, 20.4902, 74.1170)
Luminance0.2049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54E2 #8BE254
analogous
#6454E2 #AB54E2 #E254D2
triadic
#AB54E2 #E2AB54 #54E2AB
tetradic
#AB54E2 #E26454 #8BE254 #54D2E2
square
#AB54E2 #E26454 #8BE254 #54D2E2
split-complementary
#AB54E2 #D2E254 #54E264
monochromatic
#6D1BA0 #9024D5 #AB54E2 #C588EB #DEBDF4

Accessibility & contrast

On white

4.12
#AB54E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#AB54E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54E2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54E2#FFFFFF#000000##000000
##AB54E21.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E6
Deuteranopia (green-blind)
#417EDF
Tritanopia (blue-blind)
#A37094
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab54e2;
/* rgb */ color: rgb(171, 84, 226);
/* oklch */ color: oklch(61.5% 0.213 309.8);
Tailwind
colors: {
  custom: {
    50: '#c889ec',
    500: '#ab54e2',
    950: '#000000',
  },
}
SCSS
$custom: #ab54e2;
$custom-light: #c889ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54e2",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 226
  },
  "hsl": {
    "h": 276.761,
    "s": 71,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61512,
    "c": 0.21293,
    "h": 309.8
  },
  "luminance": 0.2049
}

Semantic roles & 50–950 ramp

primary
#AB54E2
secondary
#C3E4AE
accent
#D3125D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB54E2

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

Preview Lab → · Contrast checker → · Palette generator →

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