#8A4DC8#8A4DC8

#8A4DC8 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.1% C 0.186 H 303.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A4DC8
RGBrgb(138, 77, 200)
HSLhsl(270, 53%, 54%)
HSVhsv(270, 62%, 78%)
CMYKcmyk(31%, 61.5%, 0%, 21.6%)
CIE-LABlab(45.47, 49.12, -54.51)
CIE-LCHlch(45.47, 73.37, 312.02°)
OKLaboklab(55.11% 0.1031 -0.1544)
OKLCHoklch(55.11% 0.186 303.7)
XYZxyz(23.5581, 14.8812, 56.2636)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DC8 #8BC84D
analogous
#4D4EC8 #8A4DC8 #C84DC8
triadic
#8A4DC8 #C88A4D #4DC88A
tetradic
#8A4DC8 #C84D4E #8BC84D #4DC8C8
square
#8A4DC8 #C84D4E #8BC84D #4DC8C8
split-complementary
#8A4DC8 #C8C84D #4EC84D
monochromatic
#4D2476 #6B33A5 #8A4DC8 #A97CD6 #C7ABE5

Accessibility & contrast

On white

5.28
#8A4DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8A4DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DC8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DC8#FFFFFF#000000##FFFFFF
##8A4DC81.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#2C6BC5
Tritanopia (blue-blind)
#7E6783
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4dc8;
/* rgb */ color: rgb(138, 77, 200);
/* oklch */ color: oklch(55.1% 0.186 303.7);
Tailwind
colors: {
  custom: {
    50: '#b082d9',
    500: '#8a4dc8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dc8;
$custom-light: #b082d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dc8",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 200
  },
  "hsl": {
    "h": 269.756,
    "s": 52.79,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55105,
    "c": 0.18561,
    "h": 303.7
  },
  "luminance": 0.14881
}

Semantic roles & 50–950 ramp

primary
#8A4DC8
secondary
#B9D29E
accent
#DC4C94
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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