#9D5ECB#9D5ECB

#9D5ECB is a mid, vivid violet. Relative luminance 0.195; OKLCH L 59.9% C 0.169 H 308.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9D5ECB
RGBrgb(157, 94, 203)
HSLhsl(275, 51%, 58%)
HSVhsv(275, 54%, 80%)
CMYKcmyk(22.7%, 53.7%, 0%, 20.4%)
CIE-LABlab(51.25, 45.51, -46.86)
CIE-LCHlch(51.25, 65.32, 314.16°)
OKLaboklab(59.89% 0.1059 -0.1315)
OKLCHoklch(59.89% 0.169 308.9)
XYZxyz(28.6847, 19.4857, 58.7383)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5ECB #8CCB5E
analogous
#665ECB #9D5ECB #CB5EC2
triadic
#9D5ECB #CB9D5E #5ECB9D
tetradic
#9D5ECB #CB665E #8CCB5E #5EC2CB
square
#9D5ECB #CB665E #8CCB5E #5EC2CB
split-complementary
#9D5ECB #C2CB5E #5ECB66
monochromatic
#5E2B84 #7F3AB2 #9D5ECB #B98CDA #D5BBE9

Accessibility & contrast

On white

4.29
#9D5ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#9D5ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5ECB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5ECB#FFFFFF#000000##000000
##9D5ECB1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d5ecb;
/* rgb */ color: rgb(157, 94, 203);
/* oklch */ color: oklch(59.9% 0.169 308.9);
Tailwind
colors: {
  custom: {
    50: '#bc8edb',
    500: '#9d5ecb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ecb;
$custom-light: #bc8edb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ecb",
  "rgb": {
    "r": 157,
    "g": 94,
    "b": 203
  },
  "hsl": {
    "h": 274.679,
    "s": 51.174,
    "l": 58.235
  },
  "oklch": {
    "l": 0.59885,
    "c": 0.16884,
    "h": 308.9
  },
  "luminance": 0.19485
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D5ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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