#9C4EDA#9C4EDA

#9C4EDA is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.5% C 0.208 H 306.6°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#9C4EDA
RGBrgb(156, 78, 218)
HSLhsl(273, 65%, 58%)
HSVhsv(273, 64%, 85%)
CMYKcmyk(28.4%, 64.2%, 0%, 14.5%)
CIE-LABlab(48.98, 56.85, -59.07)
CIE-LCHlch(48.98, 81.98, 313.91°)
OKLaboklab(58.49% 0.1244 -0.1672)
OKLCHoklch(58.49% 0.208 306.6)
XYZxyz(29.0869, 17.5790, 68.1768)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C4EDA #8CDA4E
analogous
#564EDA #9C4EDA #DA4ED2
triadic
#9C4EDA #DA9C4E #4EDA9C
tetradic
#9C4EDA #DA564E #8CDA4E #4ED2DA
square
#9C4EDA #DA564E #8CDA4E #4ED2DA
split-complementary
#9C4EDA #D2DA4E #4EDA56
monochromatic
#5D1E90 #7E29C2 #9C4EDA #B881E5 #D5B3EF

Accessibility & contrast

On white

4.65
#9C4EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#9C4EDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9C4EDA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C4EDA#FFFFFF#000000##FFFFFF
##9C4EDA1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DE
Deuteranopia (green-blind)
#2E75D7
Tritanopia (blue-blind)
#926B8D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9c4eda;
/* rgb */ color: rgb(156, 78, 218);
/* oklch */ color: oklch(58.5% 0.208 306.6);
Tailwind
colors: {
  custom: {
    50: '#bd84e6',
    500: '#9c4eda',
    950: '#000000',
  },
}
SCSS
$custom: #9c4eda;
$custom-light: #bd84e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c4eda",
  "rgb": {
    "r": 156,
    "g": 78,
    "b": 218
  },
  "hsl": {
    "h": 273.429,
    "s": 65.421,
    "l": 58.039
  },
  "oklch": {
    "l": 0.58491,
    "c": 0.20837,
    "h": 306.6
  },
  "luminance": 0.17579
}

Semantic roles & 50–950 ramp

primary
#9C4EDA
secondary
#BFDEA6
accent
#E83F8A
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9C4EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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