#8B40CC#8B40CC

#8B40CC is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.8% C 0.208 H 304.9°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8B40CC
RGBrgb(139, 64, 204)
HSLhsl(272, 58%, 53%)
HSVhsv(272, 69%, 80%)
CMYKcmyk(31.9%, 68.6%, 0%, 20%)
CIE-LABlab(43.53, 56.68, -59.95)
CIE-LCHlch(43.53, 82.50, 313.40°)
OKLaboklab(53.82% 0.1186 -0.1703)
OKLCHoklch(53.82% 0.208 304.9)
XYZxyz(23.3775, 13.5155, 58.4922)
Luminance0.1351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40CC #81CC40
analogous
#4540CC #8B40CC #CC40C7
triadic
#8B40CC #CC8B40 #40CC8B
tetradic
#8B40CC #CC4540 #81CC40 #40C7CC
square
#8B40CC #CC4540 #81CC40 #40C7CC
split-complementary
#8B40CC #C7CC40 #40CC45
monochromatic
#4C1F73 #6C2CA3 #8B40CC #A870D9 #C6A1E6

Accessibility & contrast

On white

5.67
#8B40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8B40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40CC
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40CC#FFFFFF#000000##FFFFFF
##8B40CC1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0467C9
Tritanopia (blue-blind)
#7F6081
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8b40cc;
/* rgb */ color: rgb(139, 64, 204);
/* oklch */ color: oklch(53.8% 0.208 304.9);
Tailwind
colors: {
  custom: {
    50: '#b27adc',
    500: '#8b40cc',
    950: '#000000',
  },
}
SCSS
$custom: #8b40cc;
$custom-light: #b27adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40cc",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 272.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53819,
    "c": 0.20753,
    "h": 304.9
  },
  "luminance": 0.13515
}

Semantic roles & 50–950 ramp

primary
#8B40CC
secondary
#B2D295
accent
#E1478E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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