#9A5BE7#9A5BE7

#9A5BE7 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.9% C 0.204 H 301.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9A5BE7
RGBrgb(154, 91, 231)
HSLhsl(267, 74%, 63%)
HSVhsv(267, 61%, 91%)
CMYKcmyk(33.3%, 60.6%, 0%, 9.4%)
CIE-LABlab(51.97, 52.98, -61.61)
CIE-LCHlch(51.97, 81.26, 310.69°)
OKLaboklab(60.87% 0.1061 -0.1748)
OKLCHoklch(60.87% 0.204 301.3)
XYZxyz(31.4879, 20.1216, 77.8108)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5BE7 #A8E75B
analogous
#5B62E7 #9A5BE7 #E05BE7
triadic
#9A5BE7 #E79A5B #5BE79A
tetradic
#9A5BE7 #E75B62 #A8E75B #5BE7E0
square
#9A5BE7 #E75B62 #A8E75B #5BE7E0
split-complementary
#9A5BE7 #E7E05B #62E75B
monochromatic
#5C19AE #7926DF #9A5BE7 #BB90EF #DCC6F7

Accessibility & contrast

On white

4.18
#9A5BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#9A5BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5BE7
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5BE7#FFFFFF#000000##000000
##9A5BE71.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#2D7BE4
Tritanopia (blue-blind)
#8A7999
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5be7;
/* rgb */ color: rgb(154, 91, 231);
/* oklch */ color: oklch(60.9% 0.204 301.3);
Tailwind
colors: {
  custom: {
    50: '#bc8cef',
    500: '#9a5be7',
    950: '#000000',
  },
}
SCSS
$custom: #9a5be7;
$custom-light: #bc8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5be7",
  "rgb": {
    "r": 154,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 267,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.60872,
    "c": 0.20448,
    "h": 301.3
  },
  "luminance": 0.20122
}

Semantic roles & 50–950 ramp

primary
#9A5BE7
secondary
#D1E8B6
accent
#D70F7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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