#AB7CE2#AB7CE2

#AB7CE2 is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.4% C 0.152 H 303.9°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#AB7CE2
RGBrgb(171, 124, 226)
HSLhsl(268, 64%, 69%)
HSVhsv(268, 45%, 89%)
CMYKcmyk(24.3%, 45.1%, 0%, 11.4%)
CIE-LABlab(60.40, 38.17, -45.28)
CIE-LCHlch(60.40, 59.22, 310.13°)
OKLaboklab(67.41% 0.0849 -0.1266)
OKLCHoklch(67.41% 0.152 303.9)
XYZxyz(37.7268, 28.5643, 75.4627)
Luminance0.2856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7CE2 #B3E27C
analogous
#7C80E2 #AB7CE2 #DE7CE2
triadic
#AB7CE2 #E2AB7C #7CE2AB
tetradic
#AB7CE2 #E27C80 #B3E27C #7CE2DE
square
#AB7CE2 #E27C80 #B3E27C #7CE2DE
split-complementary
#AB7CE2 #E2DE7C #80E27C
monochromatic
#6C29BA #8B4AD7 #AB7CE2 #CBAEED #EBE0F8

Accessibility & contrast

On white

3.13
#AB7CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#AB7CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7CE2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7CE2#FFFFFF#000000##000000
##AB7CE21.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6190E6
Deuteranopia (green-blind)
#6C92DF
Tritanopia (blue-blind)
#A28DA4
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ab7ce2;
/* rgb */ color: rgb(171, 124, 226);
/* oklch */ color: oklch(67.4% 0.152 303.9);
Tailwind
colors: {
  custom: {
    50: '#c6a3eb',
    500: '#ab7ce2',
    950: '#000000',
  },
}
SCSS
$custom: #ab7ce2;
$custom-light: #c6a3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7ce2",
  "rgb": {
    "r": 171,
    "g": 124,
    "b": 226
  },
  "hsl": {
    "h": 267.647,
    "s": 63.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.67414,
    "c": 0.15244,
    "h": 303.9
  },
  "luminance": 0.28564
}

Semantic roles & 50–950 ramp

primary
#AB7CE2
secondary
#DEECCE
accent
#CC1A7A
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AB7CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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