#8A4BB2#8A4BB2

#8A4BB2 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.4% C 0.164 H 310.2°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8A4BB2
RGBrgb(138, 75, 178)
HSLhsl(277, 41%, 50%)
HSVhsv(277, 58%, 70%)
CMYKcmyk(22.5%, 57.9%, 0%, 30.2%)
CIE-LABlab(43.73, 44.98, -44.48)
CIE-LCHlch(43.73, 63.26, 315.32°)
OKLaboklab(53.4% 0.1057 -0.125)
OKLCHoklch(53.4% 0.164 310.2)
XYZxyz(21.0317, 13.6502, 43.6377)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BB2 #73B24B
analogous
#574BB2 #8A4BB2 #B24BA7
triadic
#8A4BB2 #B28A4B #4BB28A
tetradic
#8A4BB2 #B2574B #73B24B #4BA7B2
square
#8A4BB2 #B2574B #73B24B #4BA7B2
split-complementary
#8A4BB2 #A7B24B #4BB257
monochromatic
#47275C #693987 #8A4BB2 #A675C5 #C2A0D7

Accessibility & contrast

On white

5.63
#8A4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8A4BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BB2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BB2#FFFFFF#000000##FFFFFF
##8A4BB21.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#4168AF
Tritanopia (blue-blind)
#855E77
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4bb2;
/* rgb */ color: rgb(138, 75, 178);
/* oklch */ color: oklch(53.4% 0.164 310.2);
Tailwind
colors: {
  custom: {
    50: '#af80c9',
    500: '#8a4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bb2;
$custom-light: #af80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bb2",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 276.699,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53399,
    "c": 0.1637,
    "h": 310.2
  },
  "luminance": 0.1365
}

Semantic roles & 50–950 ramp

primary
#8A4BB2
secondary
#A7C495
accent
#D15786
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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