#8A4DCB#8A4DCB

#8A4DCB is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.3% C 0.189 H 303.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A4DCB
RGBrgb(138, 77, 203)
HSLhsl(269, 55%, 55%)
HSVhsv(269, 62%, 80%)
CMYKcmyk(32%, 62.1%, 0%, 20.4%)
CIE-LABlab(45.67, 49.84, -55.93)
CIE-LCHlch(45.67, 74.91, 311.71°)
OKLaboklab(55.31% 0.1029 -0.1585)
OKLCHoklch(55.31% 0.189 303)
XYZxyz(23.9121, 15.0228, 58.1283)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DCB #8ECB4D
analogous
#4D4FCB #8A4DCB #C94DCB
triadic
#8A4DCB #CB8A4D #4DCB8A
tetradic
#8A4DCB #CB4D4F #8ECB4D #4DCBC9
square
#8A4DCB #CB4D4F #8ECB4D #4DCBC9
split-complementary
#8A4DCB #CBC94D #4FCB4D
monochromatic
#4D247A #6B31A9 #8A4DCB #A97CD9 #C8ACE7

Accessibility & contrast

On white

5.24
#8A4DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8A4DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DCB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DCB#FFFFFF#000000##FFFFFF
##8A4DCB1.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#286CC8
Tritanopia (blue-blind)
#7D6885
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4dcb;
/* rgb */ color: rgb(138, 77, 203);
/* oklch */ color: oklch(55.3% 0.189 303.0);
Tailwind
colors: {
  custom: {
    50: '#b082dc',
    500: '#8a4dcb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dcb;
$custom-light: #b082dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dcb",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 269.048,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55308,
    "c": 0.18902,
    "h": 303
  },
  "luminance": 0.15023
}

Semantic roles & 50–950 ramp

primary
#8A4DCB
secondary
#BBD49F
accent
#DE4A96
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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