#9D40C5#9D40C5

#9D40C5 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.6% C 0.206 H 313.9°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9D40C5
RGBrgb(157, 64, 197)
HSLhsl(282, 53%, 51%)
HSVhsv(282, 68%, 77%)
CMYKcmyk(20.3%, 67.5%, 0%, 22.7%)
CIE-LABlab(45.45, 58.92, -52.67)
CIE-LCHlch(45.45, 79.04, 318.21°)
OKLaboklab(55.55% 0.1428 -0.1483)
OKLCHoklch(55.55% 0.206 313.9)
XYZxyz(25.8144, 14.8669, 54.3223)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D40C5 #68C540
analogous
#5A40C5 #9D40C5 #C540AA
triadic
#9D40C5 #C59D40 #40C59D
tetradic
#9D40C5 #C55A40 #68C540 #40AAC5
square
#9D40C5 #C55A40 #68C540 #40AAC5
split-complementary
#9D40C5 #AAC540 #40C55A
monochromatic
#54206A #792F99 #9D40C5 #B56FD3 #CD9EE2

Accessibility & contrast

On white

5.29
#9D40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9D40C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D40C5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D40C5#FFFFFF#000000##FFFFFF
##9D40C51.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#396EC2
Tritanopia (blue-blind)
#995B7D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9d40c5;
/* rgb */ color: rgb(157, 64, 197);
/* oklch */ color: oklch(55.6% 0.206 313.9);
Tailwind
colors: {
  custom: {
    50: '#be7cd7',
    500: '#9d40c5',
    950: '#000000',
  },
}
SCSS
$custom: #9d40c5;
$custom-light: #be7cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d40c5",
  "rgb": {
    "r": 157,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 281.955,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55553,
    "c": 0.20587,
    "h": 313.9
  },
  "luminance": 0.14866
}

Semantic roles & 50–950 ramp

primary
#9D40C5
secondary
#A5CE93
accent
#DD4B77
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #9D40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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