#AB57EB#AB57EB

#AB57EB is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.5% C 0.218 H 307.3°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#AB57EB
RGBrgb(171, 87, 235)
HSLhsl(274, 79%, 63%)
HSVhsv(274, 63%, 92%)
CMYKcmyk(27.2%, 63%, 0%, 7.8%)
CIE-LABlab(53.46, 59.64, -61.36)
CIE-LCHlch(53.46, 85.57, 314.18°)
OKLaboklab(62.47% 0.1323 -0.1735)
OKLCHoklch(62.47% 0.218 307.3)
XYZxyz(35.1951, 21.4729, 80.8717)
Luminance0.2147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB57EB #97EB57
analogous
#6157EB #AB57EB #EB57E1
triadic
#AB57EB #EBAB57 #57EBAB
tetradic
#AB57EB #EB6157 #97EB57 #57E1EB
square
#AB57EB #EB6157 #97EB57 #57E1EB
split-complementary
#AB57EB #E1EB57 #57EB61
monochromatic
#6E15B2 #9020E4 #AB57EB #C68EF2 #E2C4F8

Accessibility & contrast

On white

3.97
#AB57EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#AB57EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB57EB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB57EB#FFFFFF#000000##000000
##AB57EB1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF0
Deuteranopia (green-blind)
#3A80E8
Tritanopia (blue-blind)
#A17599
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ab57eb;
/* rgb */ color: rgb(171, 87, 235);
/* oklch */ color: oklch(62.5% 0.218 307.3);
Tailwind
colors: {
  custom: {
    50: '#c88bf2',
    500: '#ab57eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab57eb;
$custom-light: #c88bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab57eb",
  "rgb": {
    "r": 171,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 274.054,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62467,
    "c": 0.21818,
    "h": 307.3
  },
  "luminance": 0.21472
}

Semantic roles & 50–950 ramp

primary
#AB57EB
secondary
#CBE9B4
accent
#DB0A65
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB57EB

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

Preview Lab → · Contrast checker → · Palette generator →

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