#AB5FEA#AB5FEA

#AB5FEA is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.5% C 0.206 H 306.6°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AB5FEA
RGBrgb(171, 95, 234)
HSLhsl(273, 77%, 65%)
HSVhsv(273, 59%, 92%)
CMYKcmyk(26.9%, 59.4%, 0%, 8.2%)
CIE-LABlab(54.85, 55.49, -58.57)
CIE-LCHlch(54.85, 80.69, 313.45°)
OKLaboklab(63.45% 0.123 -0.1654)
OKLCHoklch(63.45% 0.206 306.6)
XYZxyz(35.7350, 22.7832, 80.3410)
Luminance0.2278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5FEA #9EEA5F
analogous
#665FEA #AB5FEA #EA5FE3
triadic
#AB5FEA #EAAB5F #5FEAAB
tetradic
#AB5FEA #EA665F #9EEA5F #5FE3EA
square
#AB5FEA #EA665F #9EEA5F #5FE3EA
split-complementary
#AB5FEA #E3EA5F #5FEA66
monochromatic
#6F18B7 #8F29E3 #AB5FEA #C795F1 #E4CBF8

Accessibility & contrast

On white

3.78
#AB5FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#AB5FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5FEA
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5FEA#FFFFFF#000000##000000
##AB5FEA1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F81EE
Deuteranopia (green-blind)
#4684E7
Tritanopia (blue-blind)
#A17A9C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5fea;
/* rgb */ color: rgb(171, 95, 234);
/* oklch */ color: oklch(63.5% 0.206 306.6);
Tailwind
colors: {
  custom: {
    50: '#c890f1',
    500: '#ab5fea',
    950: '#000000',
  },
}
SCSS
$custom: #ab5fea;
$custom-light: #c890f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5fea",
  "rgb": {
    "r": 171,
    "g": 95,
    "b": 234
  },
  "hsl": {
    "h": 272.806,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63452,
    "c": 0.20608,
    "h": 306.6
  },
  "luminance": 0.22783
}

Semantic roles & 50–950 ramp

primary
#AB5FEA
secondary
#D0EABA
accent
#D90C69
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#130D17
muted
#827E85

Preview Lab

Preview with #AB5FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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