#8A4BB6#8A4BB6

#8A4BB6 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.6% C 0.168 H 309.0°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A4BB6
RGBrgb(138, 75, 182)
HSLhsl(275, 42%, 50%)
HSVhsv(275, 59%, 71%)
CMYKcmyk(24.2%, 58.8%, 0%, 28.6%)
CIE-LABlab(43.96, 45.90, -46.45)
CIE-LCHlch(43.96, 65.30, 314.66°)
OKLaboklab(53.65% 0.1058 -0.1307)
OKLCHoklch(53.65% 0.168 309)
XYZxyz(21.4391, 13.8132, 45.7837)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BB6 #77B64B
analogous
#544BB6 #8A4BB6 #B64BAC
triadic
#8A4BB6 #B68A4B #4BB68A
tetradic
#8A4BB6 #B6544B #77B64B #4BACB6
square
#8A4BB6 #B6544B #77B64B #4BACB6
split-complementary
#8A4BB6 #ACB64B #4BB654
monochromatic
#482760 #69388B #8A4BB6 #A677C8 #C3A2D9

Accessibility & contrast

On white

5.58
#8A4BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A4BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BB6
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BB6#FFFFFF#000000##FFFFFF
##8A4BB61.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2365B9
Deuteranopia (green-blind)
#3D69B3
Tritanopia (blue-blind)
#845F79
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4bb6;
/* rgb */ color: rgb(138, 75, 182);
/* oklch */ color: oklch(53.6% 0.168 309.0);
Tailwind
colors: {
  custom: {
    50: '#af80cc',
    500: '#8a4bb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bb6;
$custom-light: #af80cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bb6",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 182
  },
  "hsl": {
    "h": 275.327,
    "s": 42.292,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53649,
    "c": 0.1682,
    "h": 309
  },
  "luminance": 0.13813
}

Semantic roles & 50–950 ramp

primary
#8A4BB6
secondary
#AAC697
accent
#D25689
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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