#9A5BE9#9A5BE9

#9A5BE9 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.0% C 0.207 H 300.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9A5BE9
RGBrgb(154, 91, 233)
HSLhsl(267, 76%, 64%)
HSVhsv(267, 61%, 91%)
CMYKcmyk(33.9%, 60.9%, 0%, 8.6%)
CIE-LABlab(52.10, 53.46, -62.53)
CIE-LCHlch(52.10, 82.27, 310.53°)
OKLaboklab(61.01% 0.1061 -0.1775)
OKLCHoklch(61.01% 0.207 300.9)
XYZxyz(31.7720, 20.2352, 79.3069)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5BE9 #AAE95B
analogous
#5B63E9 #9A5BE9 #E15BE9
triadic
#9A5BE9 #E99A5B #5BE99A
tetradic
#9A5BE9 #E95B63 #AAE95B #5BE9E1
square
#9A5BE9 #E95B63 #AAE95B #5BE9E1
split-complementary
#9A5BE9 #E9E15B #63E95B
monochromatic
#5C18B2 #7925E2 #9A5BE9 #BB91F0 #DCC7F7

Accessibility & contrast

On white

4.16
#9A5BE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#9A5BE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5BE9
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5BE9#FFFFFF#000000##000000
##9A5BE91.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEE
Deuteranopia (green-blind)
#2A7BE6
Tritanopia (blue-blind)
#89799A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5be9;
/* rgb */ color: rgb(154, 91, 233);
/* oklch */ color: oklch(61.0% 0.207 300.9);
Tailwind
colors: {
  custom: {
    50: '#bc8cf1',
    500: '#9a5be9',
    950: '#000000',
  },
}
SCSS
$custom: #9a5be9;
$custom-light: #bc8cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5be9",
  "rgb": {
    "r": 154,
    "g": 91,
    "b": 233
  },
  "hsl": {
    "h": 266.62,
    "s": 76.344,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61006,
    "c": 0.20675,
    "h": 300.9
  },
  "luminance": 0.20235
}

Semantic roles & 50–950 ramp

primary
#9A5BE9
secondary
#D3E9B7
accent
#D90D7E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5BE9

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

Preview Lab → · Contrast checker → · Palette generator →

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