#8D40C5#8D40C5

#8D40C5 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.6% C 0.201 H 307.5°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8D40C5
RGBrgb(141, 64, 197)
HSLhsl(275, 53%, 51%)
HSVhsv(275, 68%, 77%)
CMYKcmyk(28.4%, 67.5%, 0%, 22.7%)
CIE-LABlab(43.30, 55.48, -56.25)
CIE-LCHlch(43.30, 79.01, 314.61°)
OKLaboklab(53.56% 0.1221 -0.1593)
OKLCHoklch(53.56% 0.201 307.5)
XYZxyz(22.8938, 13.3610, 54.1854)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40C5 #78C540
analogous
#4A40C5 #8D40C5 #C540BA
triadic
#8D40C5 #C58D40 #40C58D
tetradic
#8D40C5 #C54A40 #78C540 #40BAC5
square
#8D40C5 #C54A40 #78C540 #40BAC5
split-complementary
#8D40C5 #BAC540 #40C54A
monochromatic
#4B206A #6C2F99 #8D40C5 #A96FD3 #C59EE2

Accessibility & contrast

On white

5.72
#8D40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8D40C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40C5
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40C5#FFFFFF#000000##FFFFFF
##8D40C51.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#2067C2
Tritanopia (blue-blind)
#845D7D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8d40c5;
/* rgb */ color: rgb(141, 64, 197);
/* oklch */ color: oklch(53.6% 0.201 307.5);
Tailwind
colors: {
  custom: {
    50: '#b37ad7',
    500: '#8d40c5',
    950: '#000000',
  },
}
SCSS
$custom: #8d40c5;
$custom-light: #b37ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40c5",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 274.737,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53558,
    "c": 0.20076,
    "h": 307.5
  },
  "luminance": 0.13361
}

Semantic roles & 50–950 ramp

primary
#8D40C5
secondary
#ACCE93
accent
#DD4B88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8D40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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