#8A4CD6#8A4CD6

#8A4CD6 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.9% C 0.203 H 300.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A4CD6
RGBrgb(138, 76, 214)
HSLhsl(267, 63%, 57%)
HSVhsv(267, 64%, 84%)
CMYKcmyk(35.5%, 64.5%, 0%, 16.1%)
CIE-LABlab(46.21, 53.05, -61.36)
CIE-LCHlch(46.21, 81.11, 310.85°)
OKLaboklab(55.94% 0.1033 -0.1745)
OKLCHoklch(55.94% 0.203 300.6)
XYZxyz(25.2003, 15.4270, 65.2553)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CD6 #98D64C
analogous
#4C53D6 #8A4CD6 #CF4CD6
triadic
#8A4CD6 #D68A4C #4CD68A
tetradic
#8A4CD6 #D64C53 #98D64C #4CD6CF
square
#8A4CD6 #D64C53 #98D64C #4CD6CF
split-complementary
#8A4CD6 #D6CF4C #53D64C
monochromatic
#4E1F88 #6B2BBA #8A4CD6 #AB7EE1 #CBB0ED

Accessibility & contrast

On white

5.14
#8A4CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8A4CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CD6
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CD6#FFFFFF#000000##FFFFFF
##8A4CD61.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDA
Deuteranopia (green-blind)
#076DD3
Tritanopia (blue-blind)
#7A6B8A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4cd6;
/* rgb */ color: rgb(138, 76, 214);
/* oklch */ color: oklch(55.9% 0.203 300.6);
Tailwind
colors: {
  custom: {
    50: '#b182e3',
    500: '#8a4cd6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cd6;
$custom-light: #b182e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cd6",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 266.957,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55939,
    "c": 0.20277,
    "h": 300.6
  },
  "luminance": 0.15427
}

Semantic roles & 50–950 ramp

primary
#8A4CD6
secondary
#C2DBA3
accent
#E6429C
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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