#8B40BF#8B40BF

#8B40BF is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.9% C 0.194 H 308.3°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8B40BF
RGBrgb(139, 64, 191)
HSLhsl(275, 50%, 50%)
HSVhsv(275, 66%, 75%)
CMYKcmyk(27.2%, 66.5%, 0%, 25.1%)
CIE-LABlab(42.64, 53.70, -53.83)
CIE-LCHlch(42.64, 76.03, 314.93°)
OKLaboklab(52.9% 0.1201 -0.1523)
OKLCHoklch(52.9% 0.194 308.3)
XYZxyz(21.8829, 12.9177, 50.6207)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40BF #74BF40
analogous
#4B40BF #8B40BF #BF40B4
triadic
#8B40BF #BF8B40 #40BF8B
tetradic
#8B40BF #BF4B40 #74BF40 #40B4BF
square
#8B40BF #BF4B40 #74BF40 #40B4BF
split-complementary
#8B40BF #B4BF40 #40BF4B
monochromatic
#482163 #6A3191 #8B40BF #A76ECE #C39CDE

Accessibility & contrast

On white

5.86
#8B40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8B40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40BF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40BF#FFFFFF#000000##FFFFFF
##8B40BF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#2765BC
Tritanopia (blue-blind)
#835B7A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8b40bf;
/* rgb */ color: rgb(139, 64, 191);
/* oklch */ color: oklch(52.9% 0.194 308.3);
Tailwind
colors: {
  custom: {
    50: '#b17ad3',
    500: '#8b40bf',
    950: '#000000',
  },
}
SCSS
$custom: #8b40bf;
$custom-light: #b17ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40bf",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 275.433,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.52899,
    "c": 0.19396,
    "h": 308.3
  },
  "luminance": 0.12917
}

Semantic roles & 50–950 ramp

primary
#8B40BF
secondary
#A8CA91
accent
#D94E87
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8B40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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