#9A5CEE#9A5CEE

#9A5CEE is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.5% C 0.211 H 299.7°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9A5CEE
RGBrgb(154, 92, 238)
HSLhsl(265, 81%, 65%)
HSVhsv(265, 61%, 93%)
CMYKcmyk(35.3%, 61.3%, 0%, 6.7%)
CIE-LABlab(52.62, 54.17, -64.51)
CIE-LCHlch(52.62, 84.24, 310.02°)
OKLaboklab(61.48% 0.1047 -0.1833)
OKLCHoklch(61.48% 0.211 299.7)
XYZxyz(32.5824, 20.6971, 83.1507)
Luminance0.2070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CEE #B0EE5C
analogous
#5C67EE #9A5CEE #E35CEE
triadic
#9A5CEE #EE9A5C #5CEE9A
tetradic
#9A5CEE #EE5C67 #B0EE5C #5CEEE3
square
#9A5CEE #EE5C67 #B0EE5C #5CEEE3
split-complementary
#9A5CEE #EEE35C #67EE5C
monochromatic
#5B14BC #7825E8 #9A5CEE #BC93F4 #DFCBFA

Accessibility & contrast

On white

4.09
#9A5CEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#9A5CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CEE
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CEE#FFFFFF#000000##000000
##9A5CEE1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF3
Deuteranopia (green-blind)
#227CEB
Tritanopia (blue-blind)
#887C9D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a5cee;
/* rgb */ color: rgb(154, 92, 238);
/* oklch */ color: oklch(61.5% 0.211 299.7);
Tailwind
colors: {
  custom: {
    50: '#bd8df4',
    500: '#9a5cee',
    950: '#000000',
  },
}
SCSS
$custom: #9a5cee;
$custom-light: #bd8df4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5cee",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 265.479,
    "s": 81.111,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61482,
    "c": 0.21106,
    "h": 299.7
  },
  "luminance": 0.20697
}

Semantic roles & 50–950 ramp

primary
#9A5CEE
secondary
#D7ECBA
accent
#DD0883
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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