#8A4EB2#8A4EB2

#8A4EB2 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.8% C 0.159 H 309.8°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A4EB2
RGBrgb(138, 78, 178)
HSLhsl(276, 39%, 50%)
HSVhsv(276, 56%, 70%)
CMYKcmyk(22.5%, 56.2%, 0%, 30.2%)
CIE-LABlab(44.33, 43.38, -43.52)
CIE-LCHlch(44.33, 61.45, 314.91°)
OKLaboklab(53.84% 0.1018 -0.1222)
OKLCHoklch(53.84% 0.159 309.8)
XYZxyz(21.2400, 14.0668, 43.7071)
Luminance0.1407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EB2 #76B24E
analogous
#584EB2 #8A4EB2 #B24EA8
triadic
#8A4EB2 #B28A4E #4EB28A
tetradic
#8A4EB2 #B2584E #76B24E #4EA8B2
square
#8A4EB2 #B2584E #76B24E #4EA8B2
split-complementary
#8A4EB2 #A8B24E #4EB258
monochromatic
#48295D #693B88 #8A4EB2 #A679C5 #C2A3D7

Accessibility & contrast

On white

5.51
#8A4EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8A4EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EB2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EB2#FFFFFF#000000##FFFFFF
##8A4EB21.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E66B5
Deuteranopia (green-blind)
#446AB0
Tritanopia (blue-blind)
#856078
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4eb2;
/* rgb */ color: rgb(138, 78, 178);
/* oklch */ color: oklch(53.8% 0.159 309.8);
Tailwind
colors: {
  custom: {
    50: '#af82c9',
    500: '#8a4eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eb2;
$custom-light: #af82c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eb2",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 276,
    "s": 39.37,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5384,
    "c": 0.15901,
    "h": 309.8
  },
  "luminance": 0.14066
}

Semantic roles & 50–950 ramp

primary
#8A4EB2
secondary
#A9C498
accent
#CF5988
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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