#8A4EE2#8A4EE2

#8A4EE2 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.1% C 0.214 H 297.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8A4EE2
RGBrgb(138, 78, 226)
HSLhsl(264, 72%, 60%)
HSVhsv(264, 65%, 89%)
CMYKcmyk(38.9%, 65.5%, 0%, 11.4%)
CIE-LABlab(47.42, 55.03, -66.24)
CIE-LCHlch(47.42, 86.11, 309.72°)
OKLaboklab(57.07% 0.0999 -0.1889)
OKLCHoklch(57.07% 0.214 297.9)
XYZxyz(26.9296, 16.3426, 73.6724)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EE2 #A6E24E
analogous
#4E5CE2 #8A4EE2 #D44EE2
triadic
#8A4EE2 #E28A4E #4EE28A
tetradic
#8A4EE2 #E24E5C #A6E24E #4EE2D4
square
#8A4EE2 #E24E5C #A6E24E #4EE2D4
split-complementary
#8A4EE2 #E2D44E #5CE24E
monochromatic
#4E1A9C #6922D1 #8A4EE2 #AD83EB #D0B7F3

Accessibility & contrast

On white

4.92
#8A4EE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#8A4EE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EE2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EE2#FFFFFF#000000##FFFFFF
##8A4EE21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#006FDF
Tritanopia (blue-blind)
#757091
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a4ee2;
/* rgb */ color: rgb(138, 78, 226);
/* oklch */ color: oklch(57.1% 0.214 297.9);
Tailwind
colors: {
  custom: {
    50: '#b283ec',
    500: '#8a4ee2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ee2;
$custom-light: #b283ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ee2",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 226
  },
  "hsl": {
    "h": 264.324,
    "s": 71.845,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57073,
    "c": 0.21363,
    "h": 297.9
  },
  "luminance": 0.16343
}

Semantic roles & 50–950 ramp

primary
#8A4EE2
secondary
#CBE3A9
accent
#EF39A5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8A4EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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