#9D40E3#9D40E3

#9D40E3 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.6% C 0.235 H 306.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9D40E3
RGBrgb(157, 64, 227)
HSLhsl(274, 74%, 57%)
HSVhsv(274, 72%, 89%)
CMYKcmyk(30.8%, 71.8%, 0%, 11%)
CIE-LABlab(47.47, 65.33, -66.62)
CIE-LCHlch(47.47, 93.31, 314.44°)
OKLaboklab(57.63% 0.1391 -0.1893)
OKLCHoklch(57.63% 0.235 306.3)
XYZxyz(29.6001, 16.3812, 74.2607)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40E3 #86E340
analogous
#4C40E3 #9D40E3 #E340D8
triadic
#9D40E3 #E39D40 #40E39D
tetradic
#9D40E3 #E34C40 #86E340 #40D8E3
square
#9D40E3 #E34C40 #86E340 #40D8E3
split-complementary
#9D40E3 #D8E340 #40E34C
monochromatic
#5D1693 #7F1DC8 #9D40E3 #B875EB #D4ABF3

Accessibility & contrast

On white

4.91
#9D40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9D40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40E3
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40E3#FFFFFF#000000##FFFFFF
##9D40E31.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#91678E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9d40e3;
/* rgb */ color: rgb(157, 64, 227);
/* oklch */ color: oklch(57.6% 0.235 306.3);
Tailwind
colors: {
  custom: {
    50: '#bf7ded',
    500: '#9d40e3',
    950: '#000000',
  },
}
SCSS
$custom: #9d40e3;
$custom-light: #bf7ded;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40e3",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 274.233,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57632,
    "c": 0.23489,
    "h": 306.3
  },
  "luminance": 0.16381
}

Semantic roles & 50–950 ramp

primary
#9D40E3
secondary
#BBE19E
accent
#F13787
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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