#9C3ED7#9C3ED7

#9C3ED7 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.4% C 0.225 H 308.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9C3ED7
RGBrgb(156, 62, 215)
HSLhsl(277, 66%, 54%)
HSVhsv(277, 71%, 84%)
CMYKcmyk(27.4%, 71.2%, 0%, 15.7%)
CIE-LABlab(46.20, 63.36, -61.84)
CIE-LCHlch(46.20, 88.54, 315.70°)
OKLaboklab(56.44% 0.1416 -0.1752)
OKLCHoklch(56.44% 0.225 308.9)
XYZxyz(27.6962, 15.4200, 65.7941)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C3ED7 #79D73E
analogous
#503ED7 #9C3ED7 #D73EC5
triadic
#9C3ED7 #D79C3E #3ED79C
tetradic
#9C3ED7 #D7503E #79D73E #3EC5D7
square
#9C3ED7 #D7503E #79D73E #3EC5D7
split-complementary
#9C3ED7 #C5D73E #3ED750
monochromatic
#591B80 #7C25B3 #9C3ED7 #B671E2 #D0A3EC

Accessibility & contrast

On white

5.14
#9C3ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9C3ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C3ED7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C3ED7#FFFFFF#000000##FFFFFF
##9C3ED71.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#176FD4
Tritanopia (blue-blind)
#936187
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9c3ed7;
/* rgb */ color: rgb(156, 62, 215);
/* oklch */ color: oklch(56.4% 0.225 308.9);
Tailwind
colors: {
  custom: {
    50: '#be7be4',
    500: '#9c3ed7',
    950: '#000000',
  },
}
SCSS
$custom: #9c3ed7;
$custom-light: #be7be4;
$custom-dark: #000000;
JSON
{
  "hex": "#9c3ed7",
  "rgb": {
    "r": 156,
    "g": 62,
    "b": 215
  },
  "hsl": {
    "h": 276.863,
    "s": 65.665,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5644,
    "c": 0.22529,
    "h": 308.9
  },
  "luminance": 0.15419
}

Semantic roles & 50–950 ramp

primary
#9C3ED7
secondary
#B1D998
accent
#E93F81
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9C3ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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