#8A4CD4#8A4CD4

#8A4CD4 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.8% C 0.201 H 301.1°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8A4CD4
RGBrgb(138, 76, 212)
HSLhsl(267, 61%, 56%)
HSVhsv(267, 64%, 83%)
CMYKcmyk(34.9%, 64.2%, 0%, 16.9%)
CIE-LABlab(46.08, 52.56, -60.43)
CIE-LCHlch(46.08, 80.09, 311.01°)
OKLaboklab(55.8% 0.1034 -0.1718)
OKLCHoklch(55.8% 0.201 301.1)
XYZxyz(24.9465, 15.3255, 63.9184)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CD4 #96D44C
analogous
#4C52D4 #8A4CD4 #CE4CD4
triadic
#8A4CD4 #D48A4C #4CD48A
tetradic
#8A4CD4 #D44C52 #96D44C #4CD4CE
square
#8A4CD4 #D44C52 #96D44C #4CD4CE
split-complementary
#8A4CD4 #D4CE4C #52D44C
monochromatic
#4E2086 #6B2CB7 #8A4CD4 #AA7DE0 #CBAFEC

Accessibility & contrast

On white

5.17
#8A4CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8A4CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CD4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CD4#FFFFFF#000000##FFFFFF
##8A4CD41.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#116CD1
Tritanopia (blue-blind)
#7A6A89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4cd4;
/* rgb */ color: rgb(138, 76, 212);
/* oklch */ color: oklch(55.8% 0.201 301.1);
Tailwind
colors: {
  custom: {
    50: '#b182e2',
    500: '#8a4cd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cd4;
$custom-light: #b182e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cd4",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 212
  },
  "hsl": {
    "h": 267.353,
    "s": 61.261,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55797,
    "c": 0.20052,
    "h": 301.1
  },
  "luminance": 0.15326
}

Semantic roles & 50–950 ramp

primary
#8A4CD4
secondary
#C0DAA2
accent
#E4439B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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