#9D8AEF#9D8AEF

#9D8AEF is a light, vivid violet. Relative luminance 0.316; OKLCH L 69.3% C 0.146 H 290.7°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#9D8AEF
RGBrgb(157, 138, 239)
HSLhsl(251, 76%, 74%)
HSVhsv(251, 42%, 94%)
CMYKcmyk(34.3%, 42.3%, 0%, 6.3%)
CIE-LABlab(62.99, 29.69, -48.47)
CIE-LCHlch(62.99, 56.84, 301.49°)
OKLaboklab(69.27% 0.0516 -0.1362)
OKLCHoklch(69.27% 0.146 290.7)
XYZxyz(38.5690, 31.5761, 85.7073)
Luminance0.3158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8AEF #DCEF8A
analogous
#8AAAEF #9D8AEF #D08AEF
triadic
#9D8AEF #EF9D8A #8AEF9D
tetradic
#9D8AEF #EF8AAA #DCEF8A #8AEFD0
square
#9D8AEF #EF8AAA #DCEF8A #8AEFD0
split-complementary
#9D8AEF #EFD08A #AAEF8A
monochromatic
#431FE0 #7054E8 #9D8AEF #CAC0F6 #E8E4FB

Accessibility & contrast

On white

2.87
#9D8AEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#9D8AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D8AEF
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8AEF#FFFFFF#000000##000000
##9D8AEF1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#699AF3
Deuteranopia (green-blind)
#6B96ED
Tritanopia (blue-blind)
#899DB1
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9d8aef;
/* rgb */ color: rgb(157, 138, 239);
/* oklch */ color: oklch(69.3% 0.146 290.7);
Tailwind
colors: {
  custom: {
    50: '#bdacf5',
    500: '#9d8aef',
    950: '#000000',
  },
}
SCSS
$custom: #9d8aef;
$custom-light: #bdacf5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8aef",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 239
  },
  "hsl": {
    "h": 251.287,
    "s": 75.94,
    "l": 73.922
  },
  "oklch": {
    "l": 0.69274,
    "c": 0.14567,
    "h": 290.7
  },
  "luminance": 0.31577
}

Semantic roles & 50–950 ramp

primary
#9D8AEF
secondary
#EEF3D8
accent
#D80DB2
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #9D8AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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