#AB5EBA#AB5EBA

#AB5EBA is a mid, vivid purple. Relative luminance 0.202; OKLCH L 60.6% C 0.156 H 320.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AB5EBA
RGBrgb(171, 94, 186)
HSLhsl(290, 40%, 55%)
HSVhsv(290, 49%, 73%)
CMYKcmyk(8.1%, 49.5%, 0%, 27.1%)
CIE-LABlab(52.07, 45.72, -35.67)
CIE-LCHlch(52.07, 57.99, 322.04°)
OKLaboklab(60.58% 0.1214 -0.0986)
OKLCHoklch(60.58% 0.156 320.9)
XYZxyz(29.6592, 20.2097, 48.7834)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5EBA #6DBA5E
analogous
#7D5EBA #AB5EBA #BA5E9B
triadic
#AB5EBA #BAAB5E #5EBAAB
tetradic
#AB5EBA #BA7D5E #6DBA5E #5E9BBA
square
#AB5EBA #BA7D5E #6DBA5E #5E9BBA
split-complementary
#AB5EBA #9BBA5E #5EBA7D
monochromatic
#642F6E #8B4299 #AB5EBA #C189CC #D8B4DF

Accessibility & contrast

On white

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

On black

5.04
#AB5EBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5EBA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5EBA#FFFFFF#000000##000000
##AB5EBA1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5077BD
Deuteranopia (green-blind)
#667FB7
Tritanopia (blue-blind)
#AC6A83
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab5eba;
/* rgb */ color: rgb(171, 94, 186);
/* oklch */ color: oklch(60.6% 0.156 320.9);
Tailwind
colors: {
  custom: {
    50: '#c68ecf',
    500: '#ab5eba',
    950: '#000000',
  },
}
SCSS
$custom: #ab5eba;
$custom-light: #c68ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5eba",
  "rgb": {
    "r": 171,
    "g": 94,
    "b": 186
  },
  "hsl": {
    "h": 290.217,
    "s": 40,
    "l": 54.902
  },
  "oklch": {
    "l": 0.60579,
    "c": 0.15638,
    "h": 320.9
  },
  "luminance": 0.20209
}

Semantic roles & 50–950 ramp

primary
#AB5EBA
secondary
#ADCDA7
accent
#D0586B
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AB5EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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