#9D5AEC#9D5AEC

#9D5AEC is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.4% C 0.212 H 301.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9D5AEC
RGBrgb(157, 90, 236)
HSLhsl(268, 79%, 64%)
HSVhsv(268, 62%, 93%)
CMYKcmyk(33.5%, 61.9%, 0%, 7.5%)
CIE-LABlab(52.44, 55.35, -63.66)
CIE-LCHlch(52.44, 84.36, 311.01°)
OKLaboklab(61.39% 0.1109 -0.1807)
OKLCHoklch(61.39% 0.212 301.5)
XYZxyz(32.6975, 20.5364, 81.5819)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5AEC #A9EC5A
analogous
#5A60EC #9D5AEC #E65AEC
triadic
#9D5AEC #EC9D5A #5AEC9D
tetradic
#9D5AEC #EC5A60 #A9EC5A #5AECE6
square
#9D5AEC #EC5A60 #A9EC5A #5AECE6
split-complementary
#9D5AEC #ECE65A #60EC5A
monochromatic
#5F15B7 #7C23E6 #9D5AEC #BE91F2 #DEC8F9

Accessibility & contrast

On white

4.11
#9D5AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#9D5AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5AEC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5AEC#FFFFFF#000000##000000
##9D5AEC1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#277CE9
Tritanopia (blue-blind)
#8D799B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5aec;
/* rgb */ color: rgb(157, 90, 236);
/* oklch */ color: oklch(61.4% 0.212 301.5);
Tailwind
colors: {
  custom: {
    50: '#bf8cf3',
    500: '#9d5aec',
    950: '#000000',
  },
}
SCSS
$custom: #9d5aec;
$custom-light: #bf8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5aec",
  "rgb": {
    "r": 157,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 267.534,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61386,
    "c": 0.21201,
    "h": 301.5
  },
  "luminance": 0.20537
}

Semantic roles & 50–950 ramp

primary
#9D5AEC
secondary
#D3EBB7
accent
#DC0A7B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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