#9C5ECB#9C5ECB

#9C5ECB is a mid, vivid violet. Relative luminance 0.194; OKLCH L 59.8% C 0.169 H 308.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#9C5ECB
RGBrgb(156, 94, 203)
HSLhsl(274, 51%, 58%)
HSVhsv(274, 54%, 80%)
CMYKcmyk(23.2%, 53.7%, 0%, 20.4%)
CIE-LABlab(51.14, 45.25, -47.05)
CIE-LCHlch(51.14, 65.28, 313.88°)
OKLaboklab(59.77% 0.1047 -0.1321)
OKLCHoklch(59.77% 0.169 308.4)
XYZxyz(28.4904, 19.3855, 58.7292)
Luminance0.1938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5ECB #8DCB5E
analogous
#655ECB #9C5ECB #CB5EC4
triadic
#9C5ECB #CB9C5E #5ECB9C
tetradic
#9C5ECB #CB655E #8DCB5E #5EC4CB
square
#9C5ECB #CB655E #8DCB5E #5EC4CB
split-complementary
#9C5ECB #C4CB5E #5ECB65
monochromatic
#5D2B84 #7E3AB2 #9C5ECB #B88CDA #D5BBE9

Accessibility & contrast

On white

4.31
#9C5ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#9C5ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5ECB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5ECB#FFFFFF#000000##000000
##9C5ECB1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D77CF
Deuteranopia (green-blind)
#517BC8
Tritanopia (blue-blind)
#95718C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9c5ecb;
/* rgb */ color: rgb(156, 94, 203);
/* oklch */ color: oklch(59.8% 0.169 308.4);
Tailwind
colors: {
  custom: {
    50: '#bc8edb',
    500: '#9c5ecb',
    950: '#000000',
  },
}
SCSS
$custom: #9c5ecb;
$custom-light: #bc8edb;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5ecb",
  "rgb": {
    "r": 156,
    "g": 94,
    "b": 203
  },
  "hsl": {
    "h": 274.128,
    "s": 51.174,
    "l": 58.235
  },
  "oklch": {
    "l": 0.59774,
    "c": 0.16852,
    "h": 308.4
  },
  "luminance": 0.19385
}

Semantic roles & 50–950 ramp

primary
#9C5ECB
secondary
#BFD8AD
accent
#DB4D8A
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9C5ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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