#8A4EEE#8A4EEE

#8A4EEE is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.0% C 0.227 H 295.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8A4EEE
RGBrgb(138, 78, 238)
HSLhsl(263, 82%, 62%)
HSVhsv(263, 67%, 93%)
CMYKcmyk(42%, 67.2%, 0%, 6.7%)
CIE-LABlab(48.29, 58.07, -71.60)
CIE-LCHlch(48.29, 92.18, 309.05°)
OKLaboklab(57.97% 0.0983 -0.2046)
OKLCHoklch(57.97% 0.227 295.7)
XYZxyz(28.6341, 17.0244, 82.6497)
Luminance0.1703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EEE #B2EE4E
analogous
#4E62EE #8A4EEE #DA4EEE
triadic
#8A4EEE #EE8A4E #4EEE8A
tetradic
#8A4EEE #EE4E62 #B2EE4E #4EEEDA
square
#8A4EEE #EE4E62 #B2EE4E #4EEEDA
split-complementary
#8A4EEE #EEDA4E #62EE4E
monochromatic
#4D11B1 #6516E8 #8A4EEE #AF86F3 #D4BEF9

Accessibility & contrast

On white

4.77
#8A4EEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8A4EEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EEE
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EEE#FFFFFF#000000##FFFFFF
##8A4EEE1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F3
Deuteranopia (green-blind)
#0070EB
Tritanopia (blue-blind)
#6F7598
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a4eee;
/* rgb */ color: rgb(138, 78, 238);
/* oklch */ color: oklch(58.0% 0.227 295.7);
Tailwind
colors: {
  custom: {
    50: '#b384f5',
    500: '#8a4eee',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eee;
$custom-light: #b384f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eee",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 238
  },
  "hsl": {
    "h": 262.5,
    "s": 82.474,
    "l": 61.961
  },
  "oklch": {
    "l": 0.5797,
    "c": 0.227,
    "h": 295.7
  },
  "luminance": 0.17025
}

Semantic roles & 50–950 ramp

primary
#8A4EEE
secondary
#D3E9AE
accent
#DF078E
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A4EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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