#AB51EE#AB51EE

#AB51EE is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.9% C 0.229 H 307.3°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AB51EE
RGBrgb(171, 81, 238)
HSLhsl(274, 82%, 63%)
HSVhsv(274, 66%, 93%)
CMYKcmyk(28.2%, 66%, 0%, 6.7%)
CIE-LABlab(52.64, 63.10, -64.37)
CIE-LCHlch(52.64, 90.14, 314.43°)
OKLaboklab(61.93% 0.1387 -0.1823)
OKLCHoklch(61.93% 0.229 307.3)
XYZxyz(35.1664, 20.7163, 83.0184)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB51EE #94EE51
analogous
#5D51EE #AB51EE #EE51E2
triadic
#AB51EE #EEAB51 #51EEAB
tetradic
#AB51EE #EE5D51 #94EE51 #51E2EE
square
#AB51EE #EE5D51 #94EE51 #51E2EE
split-complementary
#AB51EE #E2EE51 #51EE5D
monochromatic
#6E11B3 #9019E9 #AB51EE #C689F3 #E1C1F9

Accessibility & contrast

On white

4.08
#AB51EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#AB51EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB51EE
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB51EE#FFFFFF#000000##000000
##AB51EE1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF3
Deuteranopia (green-blind)
#2C7EEB
Tritanopia (blue-blind)
#A07399
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab51ee;
/* rgb */ color: rgb(171, 81, 238);
/* oklch */ color: oklch(61.9% 0.229 307.3);
Tailwind
colors: {
  custom: {
    50: '#c988f4',
    500: '#ab51ee',
    950: '#000000',
  },
}
SCSS
$custom: #ab51ee;
$custom-light: #c988f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab51ee",
  "rgb": {
    "r": 171,
    "g": 81,
    "b": 238
  },
  "hsl": {
    "h": 274.395,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61933,
    "c": 0.22907,
    "h": 307.3
  },
  "luminance": 0.20716
}

Semantic roles & 50–950 ramp

primary
#AB51EE
secondary
#C9EAB1
accent
#DF0763
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB51EE

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

Preview Lab → · Contrast checker → · Palette generator →

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