#9A5CEB#9A5CEB

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

Color values

HEX#9A5CEB
RGBrgb(154, 92, 235)
HSLhsl(266, 78%, 64%)
HSVhsv(266, 61%, 92%)
CMYKcmyk(34.5%, 60.9%, 0%, 7.8%)
CIE-LABlab(52.42, 53.44, -63.14)
CIE-LCHlch(52.42, 82.71, 310.24°)
OKLaboklab(61.28% 0.1048 -0.1793)
OKLCHoklch(61.28% 0.208 300.3)
XYZxyz(32.1453, 20.5222, 80.8488)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CEB #ADEB5C
analogous
#5C66EB #9A5CEB #E25CEB
triadic
#9A5CEB #EB9A5C #5CEB9A
tetradic
#9A5CEB #EB5C66 #ADEB5C #5CEBE2
square
#9A5CEB #EB5C66 #ADEB5C #5CEBE2
split-complementary
#9A5CEB #EBE25C #66EB5C
monochromatic
#5C16B6 #7825E4 #9A5CEB #BC93F2 #DEC9F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A5CEB#FFFFFF#000000##000000
##9A5CEB1.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)
#007DF0
Deuteranopia (green-blind)
#287CE8
Tritanopia (blue-blind)
#897B9B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5ceb;
/* rgb */ color: rgb(154, 92, 235);
/* oklch */ color: oklch(61.3% 0.208 300.3);
Tailwind
colors: {
  custom: {
    50: '#bd8df2',
    500: '#9a5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ceb;
$custom-light: #bd8df2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ceb",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 266.014,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.6128,
    "c": 0.20766,
    "h": 300.3
  },
  "luminance": 0.20522
}

Semantic roles & 50–950 ramp

primary
#9A5CEB
secondary
#D5EAB8
accent
#DA0B81
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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