#8D40E2#8D40E2

#8D40E2 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.7% C 0.231 H 300.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8D40E2
RGBrgb(141, 64, 226)
HSLhsl(269, 74%, 57%)
HSVhsv(269, 72%, 89%)
CMYKcmyk(37.6%, 71.7%, 0%, 11.4%)
CIE-LABlab(45.39, 62.22, -69.52)
CIE-LCHlch(45.39, 93.30, 311.82°)
OKLaboklab(55.7% 0.1178 -0.1984)
OKLCHoklch(55.7% 0.231 300.7)
XYZxyz(26.5420, 14.8203, 73.3990)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40E2 #95E240
analogous
#4044E2 #8D40E2 #DE40E2
triadic
#8D40E2 #E28D40 #40E28D
tetradic
#8D40E2 #E24044 #95E240 #40E2DE
square
#8D40E2 #E24044 #95E240 #40E2DE
split-complementary
#8D40E2 #E2DE40 #44E240
monochromatic
#511692 #6E1EC7 #8D40E2 #AD75EA #CCAAF2

Accessibility & contrast

On white

5.30
#8D40E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8D40E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40E2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40E2#FFFFFF#000000##FFFFFF
##8D40E21.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#006ADF
Tritanopia (blue-blind)
#7A688D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8d40e2;
/* rgb */ color: rgb(141, 64, 226);
/* oklch */ color: oklch(55.7% 0.231 300.7);
Tailwind
colors: {
  custom: {
    50: '#b57bec',
    500: '#8d40e2',
    950: '#000000',
  },
}
SCSS
$custom: #8d40e2;
$custom-light: #b57bec;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40e2",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 268.519,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55699,
    "c": 0.23068,
    "h": 300.7
  },
  "luminance": 0.1482
}

Semantic roles & 50–950 ramp

primary
#8D40E2
secondary
#C1E09E
accent
#F03898
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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