#9C5BE7#9C5BE7

#9C5BE7 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.1% C 0.205 H 302.1°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9C5BE7
RGBrgb(156, 91, 231)
HSLhsl(268, 74%, 63%)
HSVhsv(268, 61%, 91%)
CMYKcmyk(32.5%, 60.6%, 0%, 9.4%)
CIE-LABlab(52.20, 53.42, -61.24)
CIE-LCHlch(52.20, 81.27, 311.10°)
OKLaboklab(61.08% 0.1087 -0.1736)
OKLCHoklch(61.08% 0.205 302.1)
XYZxyz(31.8718, 20.3195, 77.8288)
Luminance0.2032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5BE7 #A6E75B
analogous
#5B60E7 #9C5BE7 #E25BE7
triadic
#9C5BE7 #E79C5B #5BE79C
tetradic
#9C5BE7 #E75B60 #A6E75B #5BE7E2
square
#9C5BE7 #E75B60 #A6E75B #5BE7E2
split-complementary
#9C5BE7 #E7E25B #60E75B
monochromatic
#5E19AE #7C26DF #9C5BE7 #BC90EF #DCC6F7

Accessibility & contrast

On white

4.15
#9C5BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#9C5BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5BE7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5BE7#FFFFFF#000000##000000
##9C5BE71.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#307CE4
Tritanopia (blue-blind)
#8D7899
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9c5be7;
/* rgb */ color: rgb(156, 91, 231);
/* oklch */ color: oklch(61.1% 0.205 302.1);
Tailwind
colors: {
  custom: {
    50: '#be8cef',
    500: '#9c5be7',
    950: '#000000',
  },
}
SCSS
$custom: #9c5be7;
$custom-light: #be8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5be7",
  "rgb": {
    "r": 156,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 267.857,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61084,
    "c": 0.20487,
    "h": 302.1
  },
  "luminance": 0.2032
}

Semantic roles & 50–950 ramp

primary
#9C5BE7
secondary
#D1E8B6
accent
#D70F7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9C5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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