#8E40CB#8E40CB

#8E40CB is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.1% C 0.207 H 306.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8E40CB
RGBrgb(142, 64, 203)
HSLhsl(274, 57%, 52%)
HSVhsv(274, 68%, 80%)
CMYKcmyk(30%, 68.5%, 0%, 20.4%)
CIE-LABlab(43.84, 57.06, -58.84)
CIE-LCHlch(43.84, 81.96, 314.12°)
OKLaboklab(54.1% 0.1228 -0.1669)
OKLCHoklch(54.1% 0.207 306.3)
XYZxyz(23.7659, 13.7296, 57.8864)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40CB #7DCB40
analogous
#4840CB #8E40CB #CB40C3
triadic
#8E40CB #CB8E40 #40CB8E
tetradic
#8E40CB #CB4840 #7DCB40 #40C3CB
square
#8E40CB #CB4840 #7DCB40 #40C3CB
split-complementary
#8E40CB #C3CB40 #40CB48
monochromatic
#4D1F72 #6E2CA2 #8E40CB #AA70D8 #C7A0E5

Accessibility & contrast

On white

5.61
#8E40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8E40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40CB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40CB#FFFFFF#000000##FFFFFF
##8E40CB1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#1568C8
Tritanopia (blue-blind)
#845F81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8e40cb;
/* rgb */ color: rgb(142, 64, 203);
/* oklch */ color: oklch(54.1% 0.207 306.3);
Tailwind
colors: {
  custom: {
    50: '#b47bdc',
    500: '#8e40cb',
    950: '#000000',
  },
}
SCSS
$custom: #8e40cb;
$custom-light: #b47bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40cb",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 273.669,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54103,
    "c": 0.20722,
    "h": 306.3
  },
  "luminance": 0.13729
}

Semantic roles & 50–950 ramp

primary
#8E40CB
secondary
#B0D295
accent
#E0478B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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