#8B40CF#8B40CF

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

Color values

HEX#8B40CF
RGBrgb(139, 64, 207)
HSLhsl(271, 60%, 53%)
HSVhsv(271, 69%, 81%)
CMYKcmyk(32.9%, 69.1%, 0%, 18.8%)
CIE-LABlab(43.74, 57.38, -61.33)
CIE-LCHlch(43.74, 83.99, 313.09°)
OKLaboklab(54.04% 0.1182 -0.1743)
OKLCHoklch(54.04% 0.211 304.1)
XYZxyz(23.7408, 13.6608, 60.4055)
Luminance0.1366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40CF #84CF40
analogous
#4340CF #8B40CF #CF40CB
triadic
#8B40CF #CF8B40 #40CF8B
tetradic
#8B40CF #CF4340 #84CF40 #40CBCF
square
#8B40CF #CF4340 #84CF40 #40CBCF
split-complementary
#8B40CF #CBCF40 #40CF43
monochromatic
#4C1E77 #6C2AA8 #8B40CF #A971DB #C6A2E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B40CF#FFFFFF#000000##FFFFFF
##8B40CF1.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)
#0066D3
Deuteranopia (green-blind)
#0067CC
Tritanopia (blue-blind)
#7E6183
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8b40cf;
/* rgb */ color: rgb(139, 64, 207);
/* oklch */ color: oklch(54.0% 0.211 304.1);
Tailwind
colors: {
  custom: {
    50: '#b27bdf',
    500: '#8b40cf',
    950: '#000000',
  },
}
SCSS
$custom: #8b40cf;
$custom-light: #b27bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40cf",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 271.469,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54038,
    "c": 0.21066,
    "h": 304.1
  },
  "luminance": 0.13661
}

Semantic roles & 50–950 ramp

primary
#8B40CF
secondary
#B4D497
accent
#E34590
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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