#9D40B2#9D40B2

#9D40B2 is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.4% C 0.188 H 319.8°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9D40B2
RGBrgb(157, 64, 178)
HSLhsl(289, 47%, 47%)
HSVhsv(289, 64%, 70%)
CMYKcmyk(11.8%, 64%, 0%, 30.2%)
CIE-LABlab(44.30, 55.09, -43.41)
CIE-LCHlch(44.30, 70.14, 321.77°)
OKLaboklab(54.36% 0.1434 -0.1212)
OKLCHoklch(54.36% 0.188 319.8)
XYZxyz(23.7729, 14.0503, 43.5706)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40B2 #55B240
analogous
#6440B2 #9D40B2 #B2408E
triadic
#9D40B2 #B29D40 #40B29D
tetradic
#9D40B2 #B26440 #55B240 #408EB2
square
#9D40B2 #B26440 #55B240 #408EB2
split-complementary
#9D40B2 #8EB240 #40B264
monochromatic
#4E2058 #753085 #9D40B2 #B667C8 #CC94D8

Accessibility & contrast

On white

5.51
#9D40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#9D40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40B2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40B2#FFFFFF#000000##FFFFFF
##9D40B21.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#496CAF
Tritanopia (blue-blind)
#9E5373
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9d40b2;
/* rgb */ color: rgb(157, 64, 178);
/* oklch */ color: oklch(54.4% 0.188 319.8);
Tailwind
colors: {
  custom: {
    50: '#bd7bc9',
    500: '#9d40b2',
    950: '#000000',
  },
}
SCSS
$custom: #9d40b2;
$custom-light: #bd7bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40b2",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 288.947,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54359,
    "c": 0.18778,
    "h": 319.8
  },
  "luminance": 0.14049
}

Semantic roles & 50–950 ramp

primary
#9D40B2
secondary
#95C48A
accent
#D7516A
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9D40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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