#8A4BDA#8A4BDA

#8A4BDA is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.1% C 0.209 H 299.9°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8A4BDA
RGBrgb(138, 75, 218)
HSLhsl(266, 66%, 57%)
HSVhsv(266, 66%, 85%)
CMYKcmyk(36.7%, 65.6%, 0%, 14.5%)
CIE-LABlab(46.31, 54.54, -63.49)
CIE-LCHlch(46.31, 83.70, 310.66°)
OKLaboklab(56.09% 0.1039 -0.1808)
OKLCHoklch(56.09% 0.209 299.9)
XYZxyz(25.6491, 15.4971, 67.9560)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BDA #9BDA4B
analogous
#4B53DA #8A4BDA #D24BDA
triadic
#8A4BDA #DA8A4B #4BDA8A
tetradic
#8A4BDA #DA4B53 #9BDA4B #4BDAD2
square
#8A4BDA #DA4B53 #9BDA4B #4BDAD2
split-complementary
#8A4BDA #DAD24B #53DA4B
monochromatic
#4F1D8E #6B28C0 #8A4BDA #AB7EE4 #CCB1EF

Accessibility & contrast

On white

5.12
#8A4BDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8A4BDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BDA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BDA#FFFFFF#000000##FFFFFF
##8A4BDA1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDE
Deuteranopia (green-blind)
#006DD7
Tritanopia (blue-blind)
#786C8C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4bda;
/* rgb */ color: rgb(138, 75, 218);
/* oklch */ color: oklch(56.1% 0.209 299.9);
Tailwind
colors: {
  custom: {
    50: '#b281e6',
    500: '#8a4bda',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bda;
$custom-light: #b281e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bda",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 218
  },
  "hsl": {
    "h": 266.434,
    "s": 65.899,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56094,
    "c": 0.20852,
    "h": 299.9
  },
  "luminance": 0.15497
}

Semantic roles & 50–950 ramp

primary
#8A4BDA
secondary
#C4DDA4
accent
#E93F9E
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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