#8D40CB#8D40CB

#8D40CB is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.207 H 305.9°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8D40CB
RGBrgb(141, 64, 203)
HSLhsl(273, 57%, 52%)
HSVhsv(273, 68%, 80%)
CMYKcmyk(30.5%, 68.5%, 0%, 20.4%)
CIE-LABlab(43.71, 56.85, -59.06)
CIE-LCHlch(43.71, 81.97, 313.91°)
OKLaboklab(53.98% 0.1215 -0.1676)
OKLCHoklch(53.98% 0.207 305.9)
XYZxyz(23.5950, 13.6415, 57.8784)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40CB #7ECB40
analogous
#4740CB #8D40CB #CB40C4
triadic
#8D40CB #CB8D40 #40CB8D
tetradic
#8D40CB #CB4740 #7ECB40 #40C4CB
square
#8D40CB #CB4740 #7ECB40 #40C4CB
split-complementary
#8D40CB #C4CB40 #40CB47
monochromatic
#4D1F72 #6D2CA2 #8D40CB #AA70D8 #C6A0E5

Accessibility & contrast

On white

5.63
#8D40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8D40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40CB
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40CB#FFFFFF#000000##FFFFFF
##8D40CB1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#1168C8
Tritanopia (blue-blind)
#825F81
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8d40cb;
/* rgb */ color: rgb(141, 64, 203);
/* oklch */ color: oklch(54.0% 0.207 305.9);
Tailwind
colors: {
  custom: {
    50: '#b37bdc',
    500: '#8d40cb',
    950: '#000000',
  },
}
SCSS
$custom: #8d40cb;
$custom-light: #b37bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40cb",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 273.237,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53984,
    "c": 0.20697,
    "h": 305.9
  },
  "luminance": 0.13641
}

Semantic roles & 50–950 ramp

primary
#8D40CB
secondary
#B0D295
accent
#E0478C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8D40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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