#AB50D8#AB50D8

#AB50D8 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.4% C 0.208 H 312.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AB50D8
RGBrgb(171, 80, 216)
HSLhsl(280, 64%, 58%)
HSVhsv(280, 63%, 85%)
CMYKcmyk(20.8%, 63%, 0%, 15.3%)
CIE-LABlab(51.10, 58.82, -54.42)
CIE-LCHlch(51.10, 80.13, 317.22°)
OKLaboklab(60.39% 0.1412 -0.1531)
OKLCHoklch(60.39% 0.208 312.7)
XYZxyz(32.0557, 19.3540, 66.9995)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB50D8 #7DD850
analogous
#6750D8 #AB50D8 #D850C1
triadic
#AB50D8 #D8AB50 #50D8AB
tetradic
#AB50D8 #D86750 #7DD850 #50C1D8
square
#AB50D8 #D86750 #7DD850 #50C1D8
split-complementary
#AB50D8 #C1D850 #50D867
monochromatic
#69208E #8F2BC0 #AB50D8 #C382E3 #DBB4EE

Accessibility & contrast

On white

4.31
#AB50D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AB50D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB50D8
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB50D8#FFFFFF#000000##000000
##AB50D81.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1175DC
Deuteranopia (green-blind)
#467CD5
Tritanopia (blue-blind)
#A66A8D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab50d8;
/* rgb */ color: rgb(171, 80, 216);
/* oklch */ color: oklch(60.4% 0.208 312.7);
Tailwind
colors: {
  custom: {
    50: '#c886e5',
    500: '#ab50d8',
    950: '#000000',
  },
}
SCSS
$custom: #ab50d8;
$custom-light: #c886e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab50d8",
  "rgb": {
    "r": 171,
    "g": 80,
    "b": 216
  },
  "hsl": {
    "h": 280.147,
    "s": 63.551,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60387,
    "c": 0.20826,
    "h": 312.7
  },
  "luminance": 0.19353
}

Semantic roles & 50–950 ramp

primary
#AB50D8
secondary
#B9DDA7
accent
#E74178
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB50D8

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

Preview Lab → · Contrast checker → · Palette generator →

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