#AB9DEC#AB9DEC

#AB9DEC is a light, moderate violet. Relative luminance 0.388; OKLCH L 73.8% C 0.113 H 291.5°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#AB9DEC
RGBrgb(171, 157, 236)
HSLhsl(251, 68%, 77%)
HSVhsv(251, 33%, 93%)
CMYKcmyk(27.5%, 33.5%, 0%, 7.5%)
CIE-LABlab(68.63, 21.99, -37.90)
CIE-LCHlch(68.63, 43.82, 300.12°)
OKLaboklab(73.81% 0.0415 -0.1053)
OKLCHoklch(73.81% 0.113 291.5)
XYZxyz(43.9881, 38.8273, 84.5175)
Luminance0.3883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9DEC #DEEC9D
analogous
#9DB7EC #AB9DEC #D39DEC
triadic
#AB9DEC #ECAB9D #9DECAB
tetradic
#AB9DEC #EC9DB7 #DEEC9D #9DECD3
square
#AB9DEC #EC9DB7 #DEEC9D #9DECD3
split-complementary
#AB9DEC #ECD39D #B7EC9D
monochromatic
#5336D8 #7F6AE2 #AB9DEC #D7D0F6 #E9E5FA

Accessibility & contrast

On white

2.40
#AB9DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#AB9DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9DEC
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9DEC#FFFFFF#000000##000000
##AB9DEC1.002.408.778.77
#FFFFFF2.401.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A9EF
Deuteranopia (green-blind)
#89A6EA
Tritanopia (blue-blind)
#9DABBA
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ab9dec;
/* rgb */ color: rgb(171, 157, 236);
/* oklch */ color: oklch(73.8% 0.113 291.5);
Tailwind
colors: {
  custom: {
    50: '#c5baf2',
    500: '#ab9dec',
    950: '#000000',
  },
}
SCSS
$custom: #ab9dec;
$custom-light: #c5baf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9dec",
  "rgb": {
    "r": 171,
    "g": 157,
    "b": 236
  },
  "hsl": {
    "h": 250.633,
    "s": 67.521,
    "l": 77.059
  },
  "oklch": {
    "l": 0.73806,
    "c": 0.11321,
    "h": 291.5
  },
  "luminance": 0.38828
}

Semantic roles & 50–950 ramp

primary
#AB9DEC
secondary
#EDF2D9
accent
#CF16AF
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AB9DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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