#8A4CBE#8A4CBE

#8A4CBE is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.3% C 0.176 H 306.5°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8A4CBE
RGBrgb(138, 76, 190)
HSLhsl(273, 47%, 52%)
HSVhsv(273, 60%, 75%)
CMYKcmyk(27.4%, 60%, 0%, 25.5%)
CIE-LABlab(44.65, 47.25, -50.03)
CIE-LCHlch(44.65, 68.81, 313.36°)
OKLaboklab(54.3% 0.1046 -0.1412)
OKLCHoklch(54.3% 0.176 306.5)
XYZxyz(22.3580, 14.2901, 50.2856)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CBE #80BE4C
analogous
#514CBE #8A4CBE #BE4CB9
triadic
#8A4CBE #BE8A4C #4CBE8A
tetradic
#8A4CBE #BE514C #80BE4C #4CB9BE
square
#8A4CBE #BE514C #80BE4C #4CB9BE
split-complementary
#8A4CBE #B9BE4C #4CBE51
monochromatic
#4B2669 #6B3796 #8A4CBE #A779CE #C5A6DF

Accessibility & contrast

On white

5.44
#8A4CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8A4CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CBE
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CBE#FFFFFF#000000##FFFFFF
##8A4CBE1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1867C2
Deuteranopia (green-blind)
#376ABB
Tritanopia (blue-blind)
#82627E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4cbe;
/* rgb */ color: rgb(138, 76, 190);
/* oklch */ color: oklch(54.3% 0.176 306.5);
Tailwind
colors: {
  custom: {
    50: '#b081d2',
    500: '#8a4cbe',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cbe;
$custom-light: #b081d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cbe",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 190
  },
  "hsl": {
    "h": 272.632,
    "s": 46.721,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54303,
    "c": 0.17573,
    "h": 306.5
  },
  "luminance": 0.1429
}

Semantic roles & 50–950 ramp

primary
#8A4CBE
secondary
#B1CC9A
accent
#D6518E
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A4CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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