#9D8AEB#9D8AEB

#9D8AEB is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.1% C 0.140 H 291.3°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#9D8AEB
RGBrgb(157, 138, 235)
HSLhsl(252, 71%, 73%)
HSVhsv(252, 41%, 92%)
CMYKcmyk(33.2%, 41.3%, 0%, 7.8%)
CIE-LABlab(62.80, 28.66, -46.57)
CIE-LCHlch(62.80, 54.68, 301.60°)
OKLaboklab(69.06% 0.0509 -0.1307)
OKLCHoklch(69.06% 0.14 291.3)
XYZxyz(37.9846, 31.3424, 82.6296)
Luminance0.3134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8AEB #D8EB8A
analogous
#8AA7EB #9D8AEB #CE8AEB
triadic
#9D8AEB #EB9D8A #8AEB9D
tetradic
#9D8AEB #EB8AA7 #D8EB8A #8AEBCE
square
#9D8AEB #EB8AA7 #D8EB8A #8AEBCE
split-complementary
#9D8AEB #EBCE8A #A7EB8A
monochromatic
#4725D6 #7156E2 #9D8AEB #C9BEF4 #E9E5FB

Accessibility & contrast

On white

2.89
#9D8AEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#9D8AEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D8AEB
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8AEB#FFFFFF#000000##000000
##9D8AEB1.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9AEF
Deuteranopia (green-blind)
#6D96E9
Tritanopia (blue-blind)
#8A9CAF
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9d8aeb;
/* rgb */ color: rgb(157, 138, 235);
/* oklch */ color: oklch(69.1% 0.140 291.3);
Tailwind
colors: {
  custom: {
    50: '#bcacf2',
    500: '#9d8aeb',
    950: '#000000',
  },
}
SCSS
$custom: #9d8aeb;
$custom-light: #bcacf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8aeb",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 235
  },
  "hsl": {
    "h": 251.753,
    "s": 70.803,
    "l": 73.137
  },
  "oklch": {
    "l": 0.69062,
    "c": 0.14026,
    "h": 291.3
  },
  "luminance": 0.31343
}

Semantic roles & 50–950 ramp

primary
#9D8AEB
secondary
#EDF2D9
accent
#D313AD
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #9D8AEB

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

Preview Lab → · Contrast checker → · Palette generator →

#9D8AEB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva