#AB50E2#AB50E2

#AB50E2 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.0% C 0.218 H 310.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AB50E2
RGBrgb(171, 80, 226)
HSLhsl(277, 72%, 60%)
HSVhsv(277, 65%, 89%)
CMYKcmyk(24.3%, 64.6%, 0%, 11.4%)
CIE-LABlab(51.71, 60.94, -59.11)
CIE-LCHlch(51.71, 84.90, 315.87°)
OKLaboklab(61.02% 0.1407 -0.1669)
OKLCHoklch(61.02% 0.218 310.1)
XYZxyz(33.3881, 19.8869, 74.0165)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB50E2 #87E250
analogous
#6250E2 #AB50E2 #E250D0
triadic
#AB50E2 #E2AB50 #50E2AB
tetradic
#AB50E2 #E26250 #87E250 #50D0E2
square
#AB50E2 #E26250 #87E250 #50D0E2
split-complementary
#AB50E2 #D0E250 #50E262
monochromatic
#6C1A9E #9023D2 #AB50E2 #C484EB #DDB9F3

Accessibility & contrast

On white

4.22
#AB50E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#AB50E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB50E2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB50E2#FFFFFF#000000##000000
##AB50E21.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#3C7DDF
Tritanopia (blue-blind)
#A46E92
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab50e2;
/* rgb */ color: rgb(171, 80, 226);
/* oklch */ color: oklch(61.0% 0.218 310.1);
Tailwind
colors: {
  custom: {
    50: '#c887ec',
    500: '#ab50e2',
    950: '#000000',
  },
}
SCSS
$custom: #ab50e2;
$custom-light: #c887ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab50e2",
  "rgb": {
    "r": 171,
    "g": 80,
    "b": 226
  },
  "hsl": {
    "h": 277.397,
    "s": 71.569,
    "l": 60
  },
  "oklch": {
    "l": 0.61023,
    "c": 0.21828,
    "h": 310.1
  },
  "luminance": 0.19886
}

Semantic roles & 50–950 ramp

primary
#AB50E2
secondary
#C0E3AB
accent
#EE397E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB50E2

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

Preview Lab → · Contrast checker → · Palette generator →

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