#9D40CE#9D40CE

#9D40CE is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.2% C 0.215 H 311.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9D40CE
RGBrgb(157, 64, 206)
HSLhsl(279, 59%, 53%)
HSVhsv(279, 69%, 81%)
CMYKcmyk(23.8%, 68.9%, 0%, 19.2%)
CIE-LABlab(46.03, 60.81, -56.94)
CIE-LCHlch(46.03, 83.30, 316.88°)
OKLaboklab(56.15% 0.142 -0.1608)
OKLCHoklch(56.15% 0.215 311.4)
XYZxyz(26.8765, 15.2918, 59.9164)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40CE #71CE40
analogous
#5640CE #9D40CE #CE40B8
triadic
#9D40CE #CE9D40 #40CE9D
tetradic
#9D40CE #CE5640 #71CE40 #40B8CE
square
#9D40CE #CE5640 #71CE40 #40B8CE
split-complementary
#9D40CE #B8CE40 #40CE56
monochromatic
#571E75 #7C2BA6 #9D40CE #B671DA #CFA1E7

Accessibility & contrast

On white

5.17
#9D40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9D40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40CE
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40CE#FFFFFF#000000##FFFFFF
##9D40CE1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#2E6FCB
Tritanopia (blue-blind)
#975E82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9d40ce;
/* rgb */ color: rgb(157, 64, 206);
/* oklch */ color: oklch(56.2% 0.215 311.4);
Tailwind
colors: {
  custom: {
    50: '#be7cde',
    500: '#9d40ce',
    950: '#000000',
  },
}
SCSS
$custom: #9d40ce;
$custom-light: #be7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40ce",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 279.296,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56152,
    "c": 0.21454,
    "h": 311.4
  },
  "luminance": 0.15291
}

Semantic roles & 50–950 ramp

primary
#9D40CE
secondary
#ABD496
accent
#E2457C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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