#9C5FE7#9C5FE7

#9C5FE7 is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.7% C 0.199 H 301.5°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9C5FE7
RGBrgb(156, 95, 231)
HSLhsl(267, 74%, 64%)
HSVhsv(267, 59%, 91%)
CMYKcmyk(32.5%, 58.9%, 0%, 9.4%)
CIE-LABlab(52.97, 51.34, -59.99)
CIE-LCHlch(52.97, 78.96, 310.56°)
OKLaboklab(61.65% 0.104 -0.17)
OKLCHoklch(61.65% 0.199 301.5)
XYZxyz(32.2229, 21.0217, 77.9458)
Luminance0.2102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5FE7 #AAE75F
analogous
#5F66E7 #9C5FE7 #E05FE7
triadic
#9C5FE7 #E79C5F #5FE79C
tetradic
#9C5FE7 #E75F66 #AAE75F #5FE7E0
square
#9C5FE7 #E75F66 #AAE75F #5FE7E0
split-complementary
#9C5FE7 #E7E05F #66E75F
monochromatic
#5E1BB1 #7B2ADF #9C5FE7 #BD94EF #DEC9F7

Accessibility & contrast

On white

4.04
#9C5FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#9C5FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5FE7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5FE7#FFFFFF#000000##000000
##9C5FE71.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#157EEB
Deuteranopia (green-blind)
#377EE4
Tritanopia (blue-blind)
#8D7B9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9c5fe7;
/* rgb */ color: rgb(156, 95, 231);
/* oklch */ color: oklch(61.7% 0.199 301.5);
Tailwind
colors: {
  custom: {
    50: '#bd8fef',
    500: '#9c5fe7',
    950: '#000000',
  },
}
SCSS
$custom: #9c5fe7;
$custom-light: #bd8fef;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5fe7",
  "rgb": {
    "r": 156,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 266.912,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.6165,
    "c": 0.19928,
    "h": 301.5
  },
  "luminance": 0.21022
}

Semantic roles & 50–950 ramp

primary
#9C5FE7
secondary
#D3E9B9
accent
#D60F7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D17
muted
#817D85

Preview Lab

Preview with #9C5FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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