#8D40CF#8D40CF

#8D40CF is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.3% C 0.211 H 304.9°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8D40CF
RGBrgb(141, 64, 207)
HSLhsl(272, 60%, 53%)
HSVhsv(272, 69%, 81%)
CMYKcmyk(31.9%, 69.1%, 0%, 18.8%)
CIE-LABlab(43.99, 57.77, -60.91)
CIE-LCHlch(43.99, 83.95, 313.48°)
OKLaboklab(54.27% 0.1209 -0.173)
OKLCHoklch(54.27% 0.211 304.9)
XYZxyz(24.0779, 13.8346, 60.4213)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40CF #82CF40
analogous
#4540CF #8D40CF #CF40C9
triadic
#8D40CF #CF8D40 #40CF8D
tetradic
#8D40CF #CF4540 #82CF40 #40C9CF
square
#8D40CF #CF4540 #82CF40 #40C9CF
split-complementary
#8D40CF #C9CF40 #40CF45
monochromatic
#4E1E77 #6E2AA8 #8D40CF #AA71DB #C7A2E8

Accessibility & contrast

On white

5.57
#8D40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8D40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40CF
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40CF#FFFFFF#000000##FFFFFF
##8D40CF1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#816183
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8d40cf;
/* rgb */ color: rgb(141, 64, 207);
/* oklch */ color: oklch(54.3% 0.211 304.9);
Tailwind
colors: {
  custom: {
    50: '#b37bdf',
    500: '#8d40cf',
    950: '#000000',
  },
}
SCSS
$custom: #8d40cf;
$custom-light: #b37bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40cf",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 272.308,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54273,
    "c": 0.21111,
    "h": 304.9
  },
  "luminance": 0.13835
}

Semantic roles & 50–950 ramp

primary
#8D40CF
secondary
#B3D497
accent
#E3458E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8D40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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