#AB50E7#AB50E7

#AB50E7 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.3% C 0.223 H 308.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AB50E7
RGBrgb(171, 80, 231)
HSLhsl(276, 76%, 61%)
HSVhsv(276, 65%, 91%)
CMYKcmyk(26%, 65.4%, 0%, 9.4%)
CIE-LABlab(52.02, 62.02, -61.43)
CIE-LCHlch(52.02, 87.29, 315.28°)
OKLaboklab(61.35% 0.1404 -0.1737)
OKLCHoklch(61.35% 0.223 308.9)
XYZxyz(34.0842, 20.1654, 77.6826)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB50E7 #8CE750
analogous
#5F50E7 #AB50E7 #E750D7
triadic
#AB50E7 #E7AB50 #50E7AB
tetradic
#AB50E7 #E75F50 #8CE750 #50D7E7
square
#AB50E7 #E75F50 #8CE750 #50D7E7
split-complementary
#AB50E7 #D7E750 #50E75F
monochromatic
#6D17A6 #901EDC #AB50E7 #C586EE #DFBCF6

Accessibility & contrast

On white

4.17
#AB50E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AB50E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB50E7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB50E7#FFFFFF#000000##000000
##AB50E71.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EC
Deuteranopia (green-blind)
#367DE4
Tritanopia (blue-blind)
#A27095
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab50e7;
/* rgb */ color: rgb(171, 80, 231);
/* oklch */ color: oklch(61.3% 0.223 308.9);
Tailwind
colors: {
  custom: {
    50: '#c887ef',
    500: '#ab50e7',
    950: '#000000',
  },
}
SCSS
$custom: #ab50e7;
$custom-light: #c887ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab50e7",
  "rgb": {
    "r": 171,
    "g": 80,
    "b": 231
  },
  "hsl": {
    "h": 276.159,
    "s": 75.879,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61349,
    "c": 0.22329,
    "h": 308.9
  },
  "luminance": 0.20165
}

Semantic roles & 50–950 ramp

primary
#AB50E7
secondary
#C4E6AD
accent
#D80D5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB50E7

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

Preview Lab → · Contrast checker → · Palette generator →

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