#8B40CB#8B40CB

#8B40CB is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.7% C 0.206 H 305.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8B40CB
RGBrgb(139, 64, 203)
HSLhsl(272, 57%, 52%)
HSVhsv(272, 68%, 80%)
CMYKcmyk(31.5%, 68.5%, 0%, 20.4%)
CIE-LABlab(43.46, 56.45, -59.48)
CIE-LCHlch(43.46, 82.00, 313.50°)
OKLaboklab(53.75% 0.1188 -0.1689)
OKLCHoklch(53.75% 0.206 305.1)
XYZxyz(23.2580, 13.4677, 57.8626)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40CB #80CB40
analogous
#4540CB #8B40CB #CB40C6
triadic
#8B40CB #CB8B40 #40CB8B
tetradic
#8B40CB #CB4540 #80CB40 #40C6CB
square
#8B40CB #CB4540 #80CB40 #40C6CB
split-complementary
#8B40CB #C6CB40 #40CB45
monochromatic
#4C1F72 #6C2CA2 #8B40CB #A870D8 #C5A0E5

Accessibility & contrast

On white

5.69
#8B40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8B40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40CB
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40CB#FFFFFF#000000##FFFFFF
##8B40CB1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0967C8
Tritanopia (blue-blind)
#7F5F81
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8b40cb;
/* rgb */ color: rgb(139, 64, 203);
/* oklch */ color: oklch(53.7% 0.206 305.1);
Tailwind
colors: {
  custom: {
    50: '#b27adc',
    500: '#8b40cb',
    950: '#000000',
  },
}
SCSS
$custom: #8b40cb;
$custom-light: #b27adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40cb",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 272.374,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53747,
    "c": 0.20649,
    "h": 305.1
  },
  "luminance": 0.13468
}

Semantic roles & 50–950 ramp

primary
#8B40CB
secondary
#B1D295
accent
#E0478E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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