#9A5BEB#9A5BEB

#9A5BEB is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.1% C 0.209 H 300.5°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9A5BEB
RGBrgb(154, 91, 235)
HSLhsl(266, 78%, 64%)
HSVhsv(266, 61%, 92%)
CMYKcmyk(34.5%, 61.3%, 0%, 7.8%)
CIE-LABlab(52.23, 53.95, -63.45)
CIE-LCHlch(52.23, 83.28, 310.38°)
OKLaboklab(61.14% 0.106 -0.1802)
OKLCHoklch(61.14% 0.209 300.5)
XYZxyz(32.0593, 20.3501, 80.8201)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5BEB #ACEB5B
analogous
#5B64EB #9A5BEB #E25BEB
triadic
#9A5BEB #EB9A5B #5BEB9A
tetradic
#9A5BEB #EB5B64 #ACEB5B #5BEBE2
square
#9A5BEB #EB5B64 #ACEB5B #5BEBE2
split-complementary
#9A5BEB #EBE25B #64EB5B
monochromatic
#5C16B5 #7824E4 #9A5BEB #BC92F2 #DDC8F8

Accessibility & contrast

On white

4.14
#9A5BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#9A5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5BEB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5BEB#FFFFFF#000000##000000
##9A5BEB1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#267CE8
Tritanopia (blue-blind)
#897A9B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5beb;
/* rgb */ color: rgb(154, 91, 235);
/* oklch */ color: oklch(61.1% 0.209 300.5);
Tailwind
colors: {
  custom: {
    50: '#bd8cf2',
    500: '#9a5beb',
    950: '#000000',
  },
}
SCSS
$custom: #9a5beb;
$custom-light: #bd8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5beb",
  "rgb": {
    "r": 154,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 266.25,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.6114,
    "c": 0.20901,
    "h": 300.5
  },
  "luminance": 0.2035
}

Semantic roles & 50–950 ramp

primary
#9A5BEB
secondary
#D4EAB8
accent
#DB0B80
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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