#9A5CE2#9A5CE2

#9A5CE2 is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.7% C 0.197 H 302.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9A5CE2
RGBrgb(154, 92, 226)
HSLhsl(268, 70%, 62%)
HSVhsv(268, 59%, 89%)
CMYKcmyk(31.9%, 59.3%, 0%, 11.4%)
CIE-LABlab(51.85, 51.25, -58.99)
CIE-LCHlch(51.85, 78.14, 310.98°)
OKLaboklab(60.68% 0.1051 -0.1671)
OKLCHoklch(60.68% 0.197 302.2)
XYZxyz(30.8779, 20.0152, 74.1733)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CE2 #A4E25C
analogous
#5C61E2 #9A5CE2 #DD5CE2
triadic
#9A5CE2 #E29A5C #5CE29A
tetradic
#9A5CE2 #E25C61 #A4E25C #5CE2DD
square
#9A5CE2 #E25C61 #A4E25C #5CE2DD
split-complementary
#9A5CE2 #E2DD5C #61E25C
monochromatic
#5D1EA6 #7A28D9 #9A5CE2 #BA90EB #DAC4F4

Accessibility & contrast

On white

4.20
#9A5CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#9A5CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CE2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CE2#FFFFFF#000000##000000
##9A5CE21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#127BE6
Deuteranopia (green-blind)
#367BDF
Tritanopia (blue-blind)
#8C7896
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a5ce2;
/* rgb */ color: rgb(154, 92, 226);
/* oklch */ color: oklch(60.7% 0.197 302.2);
Tailwind
colors: {
  custom: {
    50: '#bc8dec',
    500: '#9a5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ce2;
$custom-light: #bc8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ce2",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 267.761,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.60684,
    "c": 0.1974,
    "h": 302.2
  },
  "luminance": 0.20015
}

Semantic roles & 50–950 ramp

primary
#9A5CE2
secondary
#CFE5B4
accent
#D2147A
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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