#9A5CE8#9A5CE8

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

Color values

HEX#9A5CE8
RGBrgb(154, 92, 232)
HSLhsl(267, 75%, 64%)
HSVhsv(267, 60%, 91%)
CMYKcmyk(33.6%, 60.3%, 0%, 9%)
CIE-LABlab(52.23, 52.70, -61.76)
CIE-LCHlch(52.23, 81.19, 310.48°)
OKLaboklab(61.08% 0.1049 -0.1752)
OKLCHoklch(61.08% 0.204 300.9)
XYZxyz(31.7156, 20.3503, 78.5854)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CE8 #AAE85C
analogous
#5C64E8 #9A5CE8 #E05CE8
triadic
#9A5CE8 #E89A5C #5CE89A
tetradic
#9A5CE8 #E85C64 #AAE85C #5CE8E0
square
#9A5CE8 #E85C64 #AAE85C #5CE8E0
split-complementary
#9A5CE8 #E8E05C #64E85C
monochromatic
#5C19B1 #7926E0 #9A5CE8 #BB92F0 #DCC7F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A5CE8#FFFFFF#000000##000000
##9A5CE81.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)
#007CEC
Deuteranopia (green-blind)
#2E7CE5
Tritanopia (blue-blind)
#8A7A99
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5ce8;
/* rgb */ color: rgb(154, 92, 232);
/* oklch */ color: oklch(61.1% 0.204 300.9);
Tailwind
colors: {
  custom: {
    50: '#bc8df0',
    500: '#9a5ce8',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ce8;
$custom-light: #bc8df0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ce8",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 232
  },
  "hsl": {
    "h": 266.571,
    "s": 75.269,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61079,
    "c": 0.20424,
    "h": 300.9
  },
  "luminance": 0.20351
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A5CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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