#9A5BEE#9A5BEE

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

Color values

HEX#9A5BEE
RGBrgb(154, 91, 238)
HSLhsl(266, 81%, 65%)
HSVhsv(266, 62%, 93%)
CMYKcmyk(35.3%, 61.8%, 0%, 6.7%)
CIE-LABlab(52.43, 54.69, -64.81)
CIE-LCHlch(52.43, 84.80, 310.16°)
OKLaboklab(61.34% 0.1058 -0.1842)
OKLCHoklch(61.34% 0.212 299.9)
XYZxyz(32.4964, 20.5250, 83.1220)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5BEE #AFEE5B
analogous
#5B66EE #9A5BEE #E35BEE
triadic
#9A5BEE #EE9A5B #5BEE9A
tetradic
#9A5BEE #EE5B66 #AFEE5B #5BEEE3
square
#9A5BEE #EE5B66 #AFEE5B #5BEEE3
split-complementary
#9A5BEE #EEE35B #66EE5B
monochromatic
#5B13BB #7824E8 #9A5BEE #BC92F4 #DECAF9

Accessibility & contrast

On white

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

On black

5.10
#9A5BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5BEE
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5BEE#FFFFFF#000000##000000
##9A5BEE1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF3
Deuteranopia (green-blind)
#1F7CEB
Tritanopia (blue-blind)
#887B9C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5bee;
/* rgb */ color: rgb(154, 91, 238);
/* oklch */ color: oklch(61.3% 0.212 299.9);
Tailwind
colors: {
  custom: {
    50: '#bd8cf4',
    500: '#9a5bee',
    950: '#000000',
  },
}
SCSS
$custom: #9a5bee;
$custom-light: #bd8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5bee",
  "rgb": {
    "r": 154,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 265.714,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61344,
    "c": 0.2124,
    "h": 299.9
  },
  "luminance": 0.20525
}

Semantic roles & 50–950 ramp

primary
#9A5BEE
secondary
#D6ECB9
accent
#DE0882
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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