#8A4EB4#8A4EB4

#8A4EB4 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.0% C 0.161 H 309.2°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A4EB4
RGBrgb(138, 78, 180)
HSLhsl(275, 40%, 51%)
HSVhsv(275, 57%, 71%)
CMYKcmyk(23.3%, 56.7%, 0%, 29.4%)
CIE-LABlab(44.44, 43.84, -44.51)
CIE-LCHlch(44.44, 62.48, 314.57°)
OKLaboklab(53.96% 0.1018 -0.1251)
OKLCHoklch(53.96% 0.161 309.2)
XYZxyz(21.4422, 14.1477, 44.7724)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EB4 #78B44E
analogous
#574EB4 #8A4EB4 #B44EAB
triadic
#8A4EB4 #B48A4E #4EB48A
tetradic
#8A4EB4 #B4574E #78B44E #4EABB4
square
#8A4EB4 #B4574E #78B44E #4EABB4
split-complementary
#8A4EB4 #ABB44E #4EB457
monochromatic
#49285F #693B8A #8A4EB4 #A679C6 #C3A4D8

Accessibility & contrast

On white

5.48
#8A4EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8A4EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EB4
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EB4#FFFFFF#000000##FFFFFF
##8A4EB41.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C67B7
Deuteranopia (green-blind)
#426AB2
Tritanopia (blue-blind)
#846179
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4eb4;
/* rgb */ color: rgb(138, 78, 180);
/* oklch */ color: oklch(54.0% 0.161 309.2);
Tailwind
colors: {
  custom: {
    50: '#af82cb',
    500: '#8a4eb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eb4;
$custom-light: #af82cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eb4",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 275.294,
    "s": 40.476,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53962,
    "c": 0.16129,
    "h": 309.2
  },
  "luminance": 0.14147
}

Semantic roles & 50–950 ramp

primary
#8A4EB4
secondary
#ABC698
accent
#D05789
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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