#AB5ED7#AB5ED7

#AB5ED7 is a light, vivid violet. Relative luminance 0.216; OKLCH L 62.2% C 0.187 H 311.5°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#AB5ED7
RGBrgb(171, 94, 215)
HSLhsl(278, 60%, 61%)
HSVhsv(278, 56%, 84%)
CMYKcmyk(20.5%, 56.3%, 0%, 15.7%)
CIE-LABlab(53.57, 51.77, -49.91)
CIE-LCHlch(53.57, 71.91, 316.05°)
OKLaboklab(62.17% 0.124 -0.14)
OKLCHoklch(62.17% 0.187 311.5)
XYZxyz(33.0608, 21.5704, 66.6987)
Luminance0.2157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5ED7 #8AD75E
analogous
#6E5ED7 #AB5ED7 #D75EC6
triadic
#AB5ED7 #D7AB5E #5ED7AB
tetradic
#AB5ED7 #D76E5E #8AD75E #5EC6D7
square
#AB5ED7 #D76E5E #8AD75E #5EC6D7
split-complementary
#AB5ED7 #C6D75E #5ED76E
monochromatic
#6D2595 #9031C6 #AB5ED7 #C58FE3 #DEC0EF

Accessibility & contrast

On white

3.95
#AB5ED7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#AB5ED7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5ED7
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5ED7#FFFFFF#000000##000000
##AB5ED71.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#397CDB
Deuteranopia (green-blind)
#5582D4
Tritanopia (blue-blind)
#A67392
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ab5ed7;
/* rgb */ color: rgb(171, 94, 215);
/* oklch */ color: oklch(62.2% 0.187 311.5);
Tailwind
colors: {
  custom: {
    50: '#c78fe4',
    500: '#ab5ed7',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ed7;
$custom-light: #c78fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ed7",
  "rgb": {
    "r": 171,
    "g": 94,
    "b": 215
  },
  "hsl": {
    "h": 278.182,
    "s": 60.199,
    "l": 60.588
  },
  "oklch": {
    "l": 0.62166,
    "c": 0.187,
    "h": 311.5
  },
  "luminance": 0.2157
}

Semantic roles & 50–950 ramp

primary
#AB5ED7
secondary
#C2DFB1
accent
#C81E5C
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130D15
muted
#827D84

Preview Lab

Preview with #AB5ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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