#9A5CE4#9A5CE4

#9A5CE4 is a mid, vivid violet. Relative luminance 0.201; OKLCH L 60.8% C 0.200 H 301.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9A5CE4
RGBrgb(154, 92, 228)
HSLhsl(267, 72%, 63%)
HSVhsv(267, 60%, 89%)
CMYKcmyk(32.5%, 59.6%, 0%, 10.6%)
CIE-LABlab(51.98, 51.73, -59.92)
CIE-LCHlch(51.98, 79.16, 310.81°)
OKLaboklab(60.82% 0.1051 -0.1698)
OKLCHoklch(60.82% 0.2 301.8)
XYZxyz(31.1539, 20.1257, 75.6271)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CE4 #A6E45C
analogous
#5C62E4 #9A5CE4 #DE5CE4
triadic
#9A5CE4 #E49A5C #5CE49A
tetradic
#9A5CE4 #E45C62 #A6E45C #5CE4DE
square
#9A5CE4 #E45C62 #A6E45C #5CE4DE
split-complementary
#9A5CE4 #E4DE5C #62E45C
monochromatic
#5D1CAA #7927DB #9A5CE4 #BB91ED #DBC5F5

Accessibility & contrast

On white

4.18
#9A5CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#9A5CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CE4
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CE4#FFFFFF#000000##000000
##9A5CE41.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A7BE8
Deuteranopia (green-blind)
#347BE1
Tritanopia (blue-blind)
#8B7897
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5ce4;
/* rgb */ color: rgb(154, 92, 228);
/* oklch */ color: oklch(60.8% 0.200 301.8);
Tailwind
colors: {
  custom: {
    50: '#bc8ded',
    500: '#9a5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ce4;
$custom-light: #bc8ded;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ce4",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 267.353,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60815,
    "c": 0.19968,
    "h": 301.8
  },
  "luminance": 0.20126
}

Semantic roles & 50–950 ramp

primary
#9A5CE4
secondary
#D0E7B5
accent
#D4127B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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