#8A4EB0#8A4EB0

#8A4EB0 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.7% C 0.157 H 310.4°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8A4EB0
RGBrgb(138, 78, 176)
HSLhsl(277, 39%, 50%)
HSVhsv(277, 56%, 69%)
CMYKcmyk(21.6%, 55.7%, 0%, 31%)
CIE-LABlab(44.21, 42.92, -42.53)
CIE-LCHlch(44.21, 60.42, 315.27°)
OKLaboklab(53.72% 0.1017 -0.1193)
OKLCHoklch(53.72% 0.157 310.4)
XYZxyz(21.0406, 13.9870, 42.6572)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EB0 #74B04E
analogous
#594EB0 #8A4EB0 #B04EA5
triadic
#8A4EB0 #B08A4E #4EB08A
tetradic
#8A4EB0 #B0594E #74B04E #4EA5B0
square
#8A4EB0 #B0594E #74B04E #4EA5B0
split-complementary
#8A4EB0 #A5B04E #4EB059
monochromatic
#47285B #693B86 #8A4EB0 #A678C3 #C2A2D6

Accessibility & contrast

On white

5.53
#8A4EB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8A4EB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EB0
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EB0#FFFFFF#000000##FFFFFF
##8A4EB01.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3066B3
Deuteranopia (green-blind)
#456AAE
Tritanopia (blue-blind)
#855F77
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4eb0;
/* rgb */ color: rgb(138, 78, 176);
/* oklch */ color: oklch(53.7% 0.157 310.4);
Tailwind
colors: {
  custom: {
    50: '#af82c8',
    500: '#8a4eb0',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eb0;
$custom-light: #af82c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eb0",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 176
  },
  "hsl": {
    "h": 276.735,
    "s": 38.583,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53719,
    "c": 0.15672,
    "h": 310.4
  },
  "luminance": 0.13987
}

Semantic roles & 50–950 ramp

primary
#8A4EB0
secondary
#A8C397
accent
#CF5987
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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