#8D40B8#8D40B8

#8D40B8 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.187 H 311.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8D40B8
RGBrgb(141, 64, 184)
HSLhsl(279, 48%, 49%)
HSVhsv(279, 65%, 72%)
CMYKcmyk(23.4%, 65.2%, 0%, 27.8%)
CIE-LABlab(42.45, 52.58, -50.03)
CIE-LCHlch(42.45, 72.58, 316.42°)
OKLaboklab(52.67% 0.1232 -0.1411)
OKLCHoklch(52.67% 0.187 311.1)
XYZxyz(21.4680, 12.7907, 46.6761)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40B8 #6BB840
analogous
#5140B8 #8D40B8 #B840A7
triadic
#8D40B8 #B88D40 #40B88D
tetradic
#8D40B8 #B85140 #6BB840 #40A7B8
square
#8D40B8 #B85140 #6BB840 #40A7B8
split-complementary
#8D40B8 #A7B840 #40B851
monochromatic
#47205D #6A308B #8D40B8 #A86ACB #C397DB

Accessibility & contrast

On white

5.90
#8D40B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8D40B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40B8
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40B8#FFFFFF#000000##FFFFFF
##8D40B81.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#3366B5
Tritanopia (blue-blind)
#885876
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8d40b8;
/* rgb */ color: rgb(141, 64, 184);
/* oklch */ color: oklch(52.7% 0.187 311.1);
Tailwind
colors: {
  custom: {
    50: '#b27ace',
    500: '#8d40b8',
    950: '#000000',
  },
}
SCSS
$custom: #8d40b8;
$custom-light: #b27ace;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40b8",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 278.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52671,
    "c": 0.18731,
    "h": 311.1
  },
  "luminance": 0.1279
}

Semantic roles & 50–950 ramp

primary
#8D40B8
secondary
#A2C78D
accent
#D85081
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8D40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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