#8B40C8#8B40C8

#8B40C8 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.5% C 0.203 H 305.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8B40C8
RGBrgb(139, 64, 200)
HSLhsl(273, 55%, 52%)
HSVhsv(273, 68%, 78%)
CMYKcmyk(30.5%, 68%, 0%, 21.6%)
CIE-LABlab(43.25, 55.75, -58.08)
CIE-LCHlch(43.25, 80.51, 313.83°)
OKLaboklab(53.53% 0.1192 -0.1648)
OKLCHoklch(53.53% 0.203 305.9)
XYZxyz(22.9039, 13.3261, 55.9980)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40C8 #7DC840
analogous
#4740C8 #8B40C8 #C840C1
triadic
#8B40C8 #C88B40 #40C88B
tetradic
#8B40C8 #C84740 #7DC840 #40C1C8
square
#8B40C8 #C84740 #7DC840 #40C1C8
split-complementary
#8B40C8 #C1C840 #40C847
monochromatic
#4B206E #6B2D9D #8B40C8 #A870D6 #C59FE3

Accessibility & contrast

On white

5.73
#8B40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8B40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40C8
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40C8#FFFFFF#000000##FFFFFF
##8B40C81.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#1566C5
Tritanopia (blue-blind)
#805E7F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8b40c8;
/* rgb */ color: rgb(139, 64, 200);
/* oklch */ color: oklch(53.5% 0.203 305.9);
Tailwind
colors: {
  custom: {
    50: '#b27ad9',
    500: '#8b40c8',
    950: '#000000',
  },
}
SCSS
$custom: #8b40c8;
$custom-light: #b27ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40c8",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 273.088,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53531,
    "c": 0.20336,
    "h": 305.9
  },
  "luminance": 0.13326
}

Semantic roles & 50–950 ramp

primary
#8B40C8
secondary
#AFD094
accent
#DF498C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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