#8B40CE#8B40CE

#8B40CE is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.210 H 304.4°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8B40CE
RGBrgb(139, 64, 206)
HSLhsl(272, 59%, 53%)
HSVhsv(272, 69%, 81%)
CMYKcmyk(32.5%, 68.9%, 0%, 19.2%)
CIE-LABlab(43.67, 57.14, -60.87)
CIE-LCHlch(43.67, 83.49, 313.19°)
OKLaboklab(53.97% 0.1184 -0.173)
OKLCHoklch(53.97% 0.21 304.4)
XYZxyz(23.6189, 13.6121, 59.7637)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40CE #83CE40
analogous
#4440CE #8B40CE #CE40CA
triadic
#8B40CE #CE8B40 #40CE8B
tetradic
#8B40CE #CE4440 #83CE40 #40CACE
square
#8B40CE #CE4440 #83CE40 #40CACE
split-complementary
#8B40CE #CACE40 #40CE44
monochromatic
#4C1E75 #6C2BA6 #8B40CE #A971DA #C6A1E7

Accessibility & contrast

On white

5.64
#8B40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8B40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40CE
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40CE#FFFFFF#000000##FFFFFF
##8B40CE1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0067CB
Tritanopia (blue-blind)
#7E6182
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8b40ce;
/* rgb */ color: rgb(139, 64, 206);
/* oklch */ color: oklch(54.0% 0.210 304.4);
Tailwind
colors: {
  custom: {
    50: '#b27ade',
    500: '#8b40ce',
    950: '#000000',
  },
}
SCSS
$custom: #8b40ce;
$custom-light: #b27ade;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40ce",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 271.69,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53965,
    "c": 0.20961,
    "h": 304.4
  },
  "luminance": 0.13612
}

Semantic roles & 50–950 ramp

primary
#8B40CE
secondary
#B3D496
accent
#E2458F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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