#9A5CE0#9A5CE0

#9A5CE0 is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.6% C 0.195 H 302.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9A5CE0
RGBrgb(154, 92, 224)
HSLhsl(268, 68%, 62%)
HSVhsv(268, 59%, 88%)
CMYKcmyk(31.3%, 58.9%, 0%, 12.2%)
CIE-LABlab(51.73, 50.76, -58.06)
CIE-LCHlch(51.73, 77.12, 311.16°)
OKLaboklab(60.56% 0.1052 -0.1643)
OKLCHoklch(60.56% 0.195 302.6)
XYZxyz(30.6050, 19.9061, 72.7365)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CE0 #A2E05C
analogous
#5C60E0 #9A5CE0 #DC5CE0
triadic
#9A5CE0 #E09A5C #5CE09A
tetradic
#9A5CE0 #E05C60 #A2E05C #5CE0DC
square
#9A5CE0 #E05C60 #A2E05C #5CE0DC
split-complementary
#9A5CE0 #E0DC5C #60E05C
monochromatic
#5D1FA3 #7A29D6 #9A5CE0 #BA8FEA #DAC3F4

Accessibility & contrast

On white

4.22
#9A5CE0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#9A5CE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CE0
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CE0#FFFFFF#000000##000000
##9A5CE01.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#187AE4
Deuteranopia (green-blind)
#397BDD
Tritanopia (blue-blind)
#8C7795
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9a5ce0;
/* rgb */ color: rgb(154, 92, 224);
/* oklch */ color: oklch(60.6% 0.195 302.6);
Tailwind
colors: {
  custom: {
    50: '#bc8dea',
    500: '#9a5ce0',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ce0;
$custom-light: #bc8dea;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ce0",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 224
  },
  "hsl": {
    "h": 268.182,
    "s": 68.041,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60555,
    "c": 0.19512,
    "h": 302.6
  },
  "luminance": 0.19906
}

Semantic roles & 50–950 ramp

primary
#9A5CE0
secondary
#CDE4B4
accent
#D01678
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5CE0

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

Preview Lab → · Contrast checker → · Palette generator →

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