#AB5BEA#AB5BEA

#AB5BEA is a light, highly saturated violet. Relative luminance 0.221; OKLCH L 62.9% C 0.212 H 307.1°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AB5BEA
RGBrgb(171, 91, 234)
HSLhsl(274, 77%, 64%)
HSVhsv(274, 61%, 92%)
CMYKcmyk(26.9%, 61.1%, 0%, 8.2%)
CIE-LABlab(54.11, 57.48, -59.75)
CIE-LCHlch(54.11, 82.91, 313.89°)
OKLaboklab(62.92% 0.1277 -0.1688)
OKLCHoklch(62.92% 0.212 307.1)
XYZxyz(35.3839, 22.0810, 80.2240)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5BEA #9AEA5B
analogous
#635BEA #AB5BEA #EA5BE2
triadic
#AB5BEA #EAAB5B #5BEAAB
tetradic
#AB5BEA #EA635B #9AEA5B #5BE2EA
square
#AB5BEA #EA635B #9AEA5B #5BE2EA
split-complementary
#AB5BEA #E2EA5B #5BEA63
monochromatic
#6F17B4 #8F25E3 #AB5BEA #C791F1 #E3C8F8

Accessibility & contrast

On white

3.88
#AB5BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#AB5BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5BEA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5BEA#FFFFFF#000000##000000
##AB5BEA1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C7FEE
Deuteranopia (green-blind)
#4082E7
Tritanopia (blue-blind)
#A1789A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ab5bea;
/* rgb */ color: rgb(171, 91, 234);
/* oklch */ color: oklch(62.9% 0.212 307.1);
Tailwind
colors: {
  custom: {
    50: '#c88df1',
    500: '#ab5bea',
    950: '#000000',
  },
}
SCSS
$custom: #ab5bea;
$custom-light: #c88df1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5bea",
  "rgb": {
    "r": 171,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 273.566,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62918,
    "c": 0.21168,
    "h": 307.1
  },
  "luminance": 0.22081
}

Semantic roles & 50–950 ramp

primary
#AB5BEA
secondary
#CDEAB7
accent
#DA0C67
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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