#8D40B4#8D40B4

#8D40B4 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.183 H 312.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8D40B4
RGBrgb(141, 64, 180)
HSLhsl(280, 48%, 48%)
HSVhsv(280, 64%, 71%)
CMYKcmyk(21.7%, 64.4%, 0%, 29.4%)
CIE-LABlab(42.19, 51.70, -48.09)
CIE-LCHlch(42.19, 70.61, 317.07°)
OKLaboklab(52.41% 0.1234 -0.1354)
OKLCHoklch(52.41% 0.183 312.3)
XYZxyz(21.0546, 12.6254, 44.4990)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40B4 #67B440
analogous
#5340B4 #8D40B4 #B440A1
triadic
#8D40B4 #B48D40 #40B48D
tetradic
#8D40B4 #B45340 #67B440 #40A1B4
square
#8D40B4 #B45340 #67B440 #40A1B4
split-complementary
#8D40B4 #A1B440 #40B453
monochromatic
#46205A #6A3087 #8D40B4 #A968C9 #C295D9

Accessibility & contrast

On white

5.96
#8D40B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8D40B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40B4
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40B4#FFFFFF#000000##FFFFFF
##8D40B41.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0360B8
Deuteranopia (green-blind)
#3765B1
Tritanopia (blue-blind)
#895774
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8d40b4;
/* rgb */ color: rgb(141, 64, 180);
/* oklch */ color: oklch(52.4% 0.183 312.3);
Tailwind
colors: {
  custom: {
    50: '#b27acb',
    500: '#8d40b4',
    950: '#000000',
  },
}
SCSS
$custom: #8d40b4;
$custom-light: #b27acb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40b4",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 279.828,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.52407,
    "c": 0.18318,
    "h": 312.3
  },
  "luminance": 0.12625
}

Semantic roles & 50–950 ramp

primary
#8D40B4
secondary
#9EC58B
accent
#D7517E
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8D40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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