#8D40C8#8D40C8

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

Color values

HEX#8D40C8
RGBrgb(141, 64, 200)
HSLhsl(274, 55%, 52%)
HSVhsv(274, 68%, 78%)
CMYKcmyk(29.5%, 68%, 0%, 21.6%)
CIE-LABlab(43.51, 56.17, -57.66)
CIE-LCHlch(43.51, 80.49, 314.25°)
OKLaboklab(53.77% 0.1218 -0.1635)
OKLCHoklch(53.77% 0.204 306.7)
XYZxyz(23.2410, 13.4999, 56.0138)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40C8 #7BC840
analogous
#4940C8 #8D40C8 #C840BF
triadic
#8D40C8 #C88D40 #40C88D
tetradic
#8D40C8 #C84940 #7BC840 #40BFC8
square
#8D40C8 #C84940 #7BC840 #40BFC8
split-complementary
#8D40C8 #BFC840 #40C849
monochromatic
#4C206E #6D2D9D #8D40C8 #A970D6 #C69FE3

Accessibility & contrast

On white

5.68
#8D40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8D40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40C8
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40C8#FFFFFF#000000##FFFFFF
##8D40C81.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#1A67C5
Tritanopia (blue-blind)
#835E7F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8d40c8;
/* rgb */ color: rgb(141, 64, 200);
/* oklch */ color: oklch(53.8% 0.204 306.7);
Tailwind
colors: {
  custom: {
    50: '#b37ad9',
    500: '#8d40c8',
    950: '#000000',
  },
}
SCSS
$custom: #8d40c8;
$custom-light: #b37ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40c8",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 273.971,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5377,
    "c": 0.20387,
    "h": 306.7
  },
  "luminance": 0.135
}

Semantic roles & 50–950 ramp

primary
#8D40C8
secondary
#AED094
accent
#DF498A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8D40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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