#8B40BA#8B40BA

#8B40BA is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.189 H 309.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8B40BA
RGBrgb(139, 64, 186)
HSLhsl(277, 49%, 49%)
HSVhsv(277, 66%, 73%)
CMYKcmyk(25.3%, 65.6%, 0%, 27.1%)
CIE-LABlab(42.31, 52.57, -51.44)
CIE-LCHlch(42.31, 73.55, 315.62°)
OKLaboklab(52.56% 0.1205 -0.1453)
OKLCHoklch(52.56% 0.189 309.7)
XYZxyz(21.3420, 12.7013, 47.7722)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40BA #6FBA40
analogous
#4E40BA #8B40BA #BA40AC
triadic
#8B40BA #BA8B40 #40BA8B
tetradic
#8B40BA #BA4E40 #6FBA40 #40ACBA
square
#8B40BA #BA4E40 #6FBA40 #40ACBA
split-complementary
#8B40BA #ACBA40 #40BA4E
monochromatic
#47215F #69308C #8B40BA #A76BCC #C299DC

Accessibility & contrast

On white

5.93
#8B40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8B40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40BA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40BA#FFFFFF#000000##FFFFFF
##8B40BA1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#2E65B7
Tritanopia (blue-blind)
#845977
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8b40ba;
/* rgb */ color: rgb(139, 64, 186);
/* oklch */ color: oklch(52.6% 0.189 309.7);
Tailwind
colors: {
  custom: {
    50: '#b17acf',
    500: '#8b40ba',
    950: '#000000',
  },
}
SCSS
$custom: #8b40ba;
$custom-light: #b17acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40ba",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 276.885,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52557,
    "c": 0.18873,
    "h": 309.7
  },
  "luminance": 0.12701
}

Semantic roles & 50–950 ramp

primary
#8B40BA
secondary
#A4C88E
accent
#D84F84
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8B40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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