#9D40DE#9D40DE

#9D40DE is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.3% C 0.230 H 307.5°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9D40DE
RGBrgb(157, 64, 222)
HSLhsl(275, 71%, 56%)
HSVhsv(275, 71%, 87%)
CMYKcmyk(29.3%, 71.2%, 0%, 12.9%)
CIE-LABlab(47.12, 64.24, -64.35)
CIE-LCHlch(47.12, 90.92, 314.95°)
OKLaboklab(57.27% 0.1399 -0.1826)
OKLCHoklch(57.27% 0.23 307.5)
XYZxyz(28.9201, 16.1092, 70.6789)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40DE #81DE40
analogous
#4E40DE #9D40DE #DE40D0
triadic
#9D40DE #DE9D40 #40DE9D
tetradic
#9D40DE #DE4E40 #81DE40 #40D0DE
square
#9D40DE #DE4E40 #81DE40 #40D0DE
split-complementary
#9D40DE #D0DE40 #40DE4E
monochromatic
#5C188B #7E21C0 #9D40DE #B874E7 #D3A8F0

Accessibility & contrast

On white

4.97
#9D40DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9D40DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40DE
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40DE#FFFFFF#000000##FFFFFF
##9D40DE1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE3
Deuteranopia (green-blind)
#0570DB
Tritanopia (blue-blind)
#92658B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9d40de;
/* rgb */ color: rgb(157, 64, 222);
/* oklch */ color: oklch(57.3% 0.230 307.5);
Tailwind
colors: {
  custom: {
    50: '#bf7de9',
    500: '#9d40de',
    950: '#000000',
  },
}
SCSS
$custom: #9d40de;
$custom-light: #bf7de9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40de",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 275.316,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5727,
    "c": 0.23004,
    "h": 307.5
  },
  "luminance": 0.16109
}

Semantic roles & 50–950 ramp

primary
#9D40DE
secondary
#B7DE9C
accent
#ED3A84
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D40DE

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

Preview Lab → · Contrast checker → · Palette generator →

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