#9C5CE7#9C5CE7

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

Color values

HEX#9C5CE7
RGBrgb(156, 92, 231)
HSLhsl(268, 74%, 63%)
HSVhsv(268, 60%, 91%)
CMYKcmyk(32.5%, 60.2%, 0%, 9.4%)
CIE-LABlab(52.39, 52.90, -60.93)
CIE-LCHlch(52.39, 80.70, 310.97°)
OKLaboklab(61.22% 0.1076 -0.1727)
OKLCHoklch(61.22% 0.203 301.9)
XYZxyz(31.9579, 20.4916, 77.8574)
Luminance0.2049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5CE7 #A7E75C
analogous
#5C61E7 #9C5CE7 #E25CE7
triadic
#9C5CE7 #E79C5C #5CE79C
tetradic
#9C5CE7 #E75C61 #A7E75C #5CE7E2
square
#9C5CE7 #E75C61 #A7E75C #5CE7E2
split-complementary
#9C5CE7 #E7E25C #61E75C
monochromatic
#5E1AAF #7C27DF #9C5CE7 #BC91EF #DDC7F7

Accessibility & contrast

On white

4.12
#9C5CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#9C5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5CE7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5CE7#FFFFFF#000000##000000
##9C5CE71.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEB
Deuteranopia (green-blind)
#327CE4
Tritanopia (blue-blind)
#8D7999
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9c5ce7;
/* rgb */ color: rgb(156, 92, 231);
/* oklch */ color: oklch(61.2% 0.203 301.9);
Tailwind
colors: {
  custom: {
    50: '#be8def',
    500: '#9c5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #9c5ce7;
$custom-light: #be8def;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5ce7",
  "rgb": {
    "r": 156,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 267.626,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61223,
    "c": 0.20348,
    "h": 301.9
  },
  "luminance": 0.20492
}

Semantic roles & 50–950 ramp

primary
#9C5CE7
secondary
#D1E8B7
accent
#D60F7B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9C5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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