#8A4DBE#8A4DBE

#8A4DBE is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.4% C 0.174 H 306.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A4DBE
RGBrgb(138, 77, 190)
HSLhsl(272, 47%, 52%)
HSVhsv(272, 59%, 75%)
CMYKcmyk(27.4%, 59.5%, 0%, 25.5%)
CIE-LABlab(44.84, 46.72, -49.72)
CIE-LCHlch(44.84, 68.23, 313.22°)
OKLaboklab(54.45% 0.1033 -0.1403)
OKLCHoklch(54.45% 0.174 306.4)
XYZxyz(22.4274, 14.4289, 50.3088)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DBE #81BE4D
analogous
#514DBE #8A4DBE #BE4DBA
triadic
#8A4DBE #BE8A4D #4DBE8A
tetradic
#8A4DBE #BE514D #81BE4D #4DBABE
square
#8A4DBE #BE514D #81BE4D #4DBABE
split-complementary
#8A4DBE #BABE4D #4DBE51
monochromatic
#4B276A #6B3797 #8A4DBE #A77ACE #C5A7DF

Accessibility & contrast

On white

5.40
#8A4DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8A4DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DBE
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DBE#FFFFFF#000000##FFFFFF
##8A4DBE1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C68C2
Deuteranopia (green-blind)
#386ABB
Tritanopia (blue-blind)
#81637E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4dbe;
/* rgb */ color: rgb(138, 77, 190);
/* oklch */ color: oklch(54.4% 0.174 306.4);
Tailwind
colors: {
  custom: {
    50: '#af82d2',
    500: '#8a4dbe',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dbe;
$custom-light: #af82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dbe",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 190
  },
  "hsl": {
    "h": 272.389,
    "s": 46.502,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54446,
    "c": 0.17424,
    "h": 306.4
  },
  "luminance": 0.14429
}

Semantic roles & 50–950 ramp

primary
#8A4DBE
secondary
#B1CC9B
accent
#D6528F
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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