#9D40D9#9D40D9

#9D40D9 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.9% C 0.225 H 308.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9D40D9
RGBrgb(157, 64, 217)
HSLhsl(276, 67%, 55%)
HSVhsv(276, 71%, 85%)
CMYKcmyk(27.6%, 70.5%, 0%, 14.9%)
CIE-LABlab(46.77, 63.16, -62.06)
CIE-LCHlch(46.77, 88.54, 315.50°)
OKLaboklab(56.91% 0.1406 -0.1759)
OKLCHoklch(56.91% 0.225 308.6)
XYZxyz(28.2599, 15.8451, 67.2019)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40D9 #7CD940
analogous
#5140D9 #9D40D9 #D940C8
triadic
#9D40D9 #D99D40 #40D99D
tetradic
#9D40D9 #D95140 #7CD940 #40C8D9
square
#9D40D9 #D95140 #7CD940 #40C8D9
split-complementary
#9D40D9 #C8D940 #40D951
monochromatic
#5B1A84 #7E24B7 #9D40D9 #B773E3 #D1A6ED

Accessibility & contrast

On white

5.04
#9D40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9D40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40D9
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40D9#FFFFFF#000000##FFFFFF
##9D40D91.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#1970D6
Tritanopia (blue-blind)
#946388
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9d40d9;
/* rgb */ color: rgb(157, 64, 217);
/* oklch */ color: oklch(56.9% 0.225 308.6);
Tailwind
colors: {
  custom: {
    50: '#bf7ce6',
    500: '#9d40d9',
    950: '#000000',
  },
}
SCSS
$custom: #9d40d9;
$custom-light: #bf7ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40d9",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 276.471,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56914,
    "c": 0.22519,
    "h": 308.6
  },
  "luminance": 0.15845
}

Semantic roles & 50–950 ramp

primary
#9D40D9
secondary
#B3DA9A
accent
#EA3E81
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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