#8B40C6#8B40C6

#8B40C6 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.4% C 0.201 H 306.4°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8B40C6
RGBrgb(139, 64, 198)
HSLhsl(274, 54%, 51%)
HSVhsv(274, 68%, 78%)
CMYKcmyk(29.8%, 67.7%, 0%, 22.4%)
CIE-LABlab(43.11, 55.29, -57.15)
CIE-LCHlch(43.11, 79.52, 314.06°)
OKLaboklab(53.39% 0.1194 -0.162)
OKLCHoklch(53.39% 0.201 306.4)
XYZxyz(22.6717, 13.2332, 54.7750)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40C6 #7BC640
analogous
#4840C6 #8B40C6 #C640BE
triadic
#8B40C6 #C68B40 #40C68B
tetradic
#8B40C6 #C64840 #7BC640 #40BEC6
square
#8B40C6 #C64840 #7BC640 #40BEC6
split-complementary
#8B40C6 #BEC640 #40C648
monochromatic
#4A206C #6B2E9B #8B40C6 #A86FD4 #C49EE2

Accessibility & contrast

On white

5.76
#8B40C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8B40C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40C6
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40C6#FFFFFF#000000##FFFFFF
##8B40C61.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CA
Deuteranopia (green-blind)
#1A66C3
Tritanopia (blue-blind)
#815E7E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8b40c6;
/* rgb */ color: rgb(139, 64, 198);
/* oklch */ color: oklch(53.4% 0.201 306.4);
Tailwind
colors: {
  custom: {
    50: '#b17ad8',
    500: '#8b40c6',
    950: '#000000',
  },
}
SCSS
$custom: #8b40c6;
$custom-light: #b17ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40c6",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 273.582,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53389,
    "c": 0.20127,
    "h": 306.4
  },
  "luminance": 0.13233
}

Semantic roles & 50–950 ramp

primary
#8B40C6
secondary
#ADCE93
accent
#DD4A8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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