#8D40C9#8D40C9

#8D40C9 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.8% C 0.205 H 306.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8D40C9
RGBrgb(141, 64, 201)
HSLhsl(274, 56%, 52%)
HSVhsv(274, 68%, 79%)
CMYKcmyk(29.9%, 68.2%, 0%, 21.2%)
CIE-LABlab(43.58, 56.39, -58.12)
CIE-LCHlch(43.58, 80.99, 314.13°)
OKLaboklab(53.84% 0.1217 -0.1648)
OKLCHoklch(53.84% 0.205 306.4)
XYZxyz(23.3582, 13.5468, 56.6313)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40C9 #7CC940
analogous
#4940C9 #8D40C9 #C940C0
triadic
#8D40C9 #C98D40 #40C98D
tetradic
#8D40C9 #C94940 #7CC940 #40C0C9
square
#8D40C9 #C94940 #7CC940 #40C0C9
split-complementary
#8D40C9 #C0C940 #40C949
monochromatic
#4C1F6F #6D2D9F #8D40C9 #A970D6 #C69FE4

Accessibility & contrast

On white

5.66
#8D40C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8D40C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40C9
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40C9#FFFFFF#000000##FFFFFF
##8D40C91.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CD
Deuteranopia (green-blind)
#1767C6
Tritanopia (blue-blind)
#835E80
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8d40c9;
/* rgb */ color: rgb(141, 64, 201);
/* oklch */ color: oklch(53.8% 0.205 306.4);
Tailwind
colors: {
  custom: {
    50: '#b37ada',
    500: '#8d40c9',
    950: '#000000',
  },
}
SCSS
$custom: #8d40c9;
$custom-light: #b37ada;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40c9",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 273.723,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53841,
    "c": 0.2049,
    "h": 306.4
  },
  "luminance": 0.13547
}

Semantic roles & 50–950 ramp

primary
#8D40C9
secondary
#AFD094
accent
#DF498B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8D40C9

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

Preview Lab → · Contrast checker → · Palette generator →

#8D40C9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva