#AB50EB#AB50EB

#AB50EB is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.6% C 0.227 H 308.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AB50EB
RGBrgb(171, 80, 235)
HSLhsl(275, 79%, 62%)
HSVhsv(275, 66%, 92%)
CMYKcmyk(27.2%, 66%, 0%, 7.8%)
CIE-LABlab(52.28, 62.89, -63.27)
CIE-LCHlch(52.28, 89.21, 314.83°)
OKLaboklab(61.61% 0.14 -0.1791)
OKLCHoklch(61.61% 0.227 308)
XYZxyz(34.6556, 20.3939, 80.6919)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB50EB #90EB50
analogous
#5E50EB #AB50EB #EB50DD
triadic
#AB50EB #EBAB50 #50EBAB
tetradic
#AB50EB #EB5E50 #90EB50 #50DDEB
square
#AB50EB #EB5E50 #90EB50 #50DDEB
split-complementary
#AB50EB #DDEB50 #50EB5E
monochromatic
#6E14AD #901AE4 #AB50EB #C587F1 #E0BEF8

Accessibility & contrast

On white

4.13
#AB50EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#AB50EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB50EB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB50EB#FFFFFF#000000##000000
##AB50EB1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F0
Deuteranopia (green-blind)
#307EE8
Tritanopia (blue-blind)
#A17197
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab50eb;
/* rgb */ color: rgb(171, 80, 235);
/* oklch */ color: oklch(61.6% 0.227 308.0);
Tailwind
colors: {
  custom: {
    50: '#c987f2',
    500: '#ab50eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab50eb;
$custom-light: #c987f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab50eb",
  "rgb": {
    "r": 171,
    "g": 80,
    "b": 235
  },
  "hsl": {
    "h": 275.226,
    "s": 79.487,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61615,
    "c": 0.22731,
    "h": 308
  },
  "luminance": 0.20393
}

Semantic roles & 50–950 ramp

primary
#AB50EB
secondary
#C6E8AF
accent
#DC0A60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB50EB

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

Preview Lab → · Contrast checker → · Palette generator →

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