#8A4CBD#8A4CBD

#8A4CBD is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.2% C 0.175 H 306.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A4CBD
RGBrgb(138, 76, 189)
HSLhsl(273, 46%, 52%)
HSVhsv(273, 60%, 74%)
CMYKcmyk(27%, 59.8%, 0%, 25.9%)
CIE-LABlab(44.58, 47.01, -49.55)
CIE-LCHlch(44.58, 68.30, 313.49°)
OKLaboklab(54.24% 0.1046 -0.1398)
OKLCHoklch(54.24% 0.175 306.8)
XYZxyz(22.2491, 14.2465, 49.7120)
Luminance0.1425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CBD #7FBD4C
analogous
#524CBD #8A4CBD #BD4CB8
triadic
#8A4CBD #BD8A4C #4CBD8A
tetradic
#8A4CBD #BD524C #7FBD4C #4CB8BD
square
#8A4CBD #BD524C #7FBD4C #4CB8BD
split-complementary
#8A4CBD #B8BD4C #4CBD52
monochromatic
#4B2668 #6A3795 #8A4CBD #A779CD #C4A5DE

Accessibility & contrast

On white

5.46
#8A4CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8A4CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CBD
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CBD#FFFFFF#000000##FFFFFF
##8A4CBD1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A67C1
Deuteranopia (green-blind)
#386ABA
Tritanopia (blue-blind)
#82627D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4cbd;
/* rgb */ color: rgb(138, 76, 189);
/* oklch */ color: oklch(54.2% 0.175 306.8);
Tailwind
colors: {
  custom: {
    50: '#af81d1',
    500: '#8a4cbd',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cbd;
$custom-light: #af81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cbd",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 189
  },
  "hsl": {
    "h": 272.92,
    "s": 46.122,
    "l": 51.961
  },
  "oklch": {
    "l": 0.54238,
    "c": 0.17459,
    "h": 306.8
  },
  "luminance": 0.14246
}

Semantic roles & 50–950 ramp

primary
#8A4CBD
secondary
#B0CB9A
accent
#D6528D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A4CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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