#9D7AEB#9D7AEB

#9D7AEB is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.2% C 0.165 H 295.9°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9D7AEB
RGBrgb(157, 122, 235)
HSLhsl(259, 74%, 70%)
HSVhsv(259, 48%, 92%)
CMYKcmyk(33.2%, 48.1%, 0%, 7.8%)
CIE-LABlab(59.05, 37.78, -52.50)
CIE-LCHlch(59.05, 64.68, 305.74°)
OKLaboklab(66.24% 0.0718 -0.148)
OKLCHoklch(66.24% 0.165 295.9)
XYZxyz(35.8558, 27.0848, 81.9200)
Luminance0.2708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7AEB #C8EB7A
analogous
#7A90EB #9D7AEB #D57AEB
triadic
#9D7AEB #EB9D7A #7AEB9D
tetradic
#9D7AEB #EB7A90 #C8EB7A #7AEBD5
square
#9D7AEB #EB7A90 #C8EB7A #7AEBD5
split-complementary
#9D7AEB #EBD57A #90EB7A
monochromatic
#541FCC #7645E3 #9D7AEB #C4AFF3 #EBE4FB

Accessibility & contrast

On white

3.27
#9D7AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#9D7AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7AEB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7AEB#FFFFFF#000000##000000
##9D7AEB1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#538FEF
Deuteranopia (green-blind)
#5A8DE8
Tritanopia (blue-blind)
#8B90A7
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d7aeb;
/* rgb */ color: rgb(157, 122, 235);
/* oklch */ color: oklch(66.2% 0.165 295.9);
Tailwind
colors: {
  custom: {
    50: '#bda1f2',
    500: '#9d7aeb',
    950: '#000000',
  },
}
SCSS
$custom: #9d7aeb;
$custom-light: #bda1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7aeb",
  "rgb": {
    "r": 157,
    "g": 122,
    "b": 235
  },
  "hsl": {
    "h": 258.584,
    "s": 73.856,
    "l": 70
  },
  "oklch": {
    "l": 0.66242,
    "c": 0.1645,
    "h": 295.9
  },
  "luminance": 0.27085
}

Semantic roles & 50–950 ramp

primary
#9D7AEB
secondary
#E6F0D1
accent
#D61099
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #9D7AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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