#8A4EBB#8A4EBB

#8A4EBB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.4% C 0.169 H 307.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A4EBB
RGBrgb(138, 78, 187)
HSLhsl(273, 44%, 52%)
HSVhsv(273, 58%, 73%)
CMYKcmyk(26.2%, 58.3%, 0%, 26.7%)
CIE-LABlab(44.86, 45.48, -47.94)
CIE-LCHlch(44.86, 66.08, 313.49°)
OKLaboklab(54.4% 0.102 -0.1351)
OKLCHoklch(54.4% 0.169 307.1)
XYZxyz(22.1734, 14.4402, 48.6232)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EBB #7FBB4E
analogous
#544EBB #8A4EBB #BB4EB5
triadic
#8A4EBB #BB8A4E #4EBB8A
tetradic
#8A4EBB #BB544E #7FBB4E #4EB5BB
square
#8A4EBB #BB544E #7FBB4E #4EB5BB
split-complementary
#8A4EBB #B5BB4E #4EBB54
monochromatic
#4B2867 #6A3993 #8A4EBB #A77ACC #C4A6DD

Accessibility & contrast

On white

5.40
#8A4EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8A4EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EBB
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EBB#FFFFFF#000000##FFFFFF
##8A4EBB1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2368BF
Deuteranopia (green-blind)
#3C6BB8
Tritanopia (blue-blind)
#82637D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4ebb;
/* rgb */ color: rgb(138, 78, 187);
/* oklch */ color: oklch(54.4% 0.169 307.1);
Tailwind
colors: {
  custom: {
    50: '#af82d0',
    500: '#8a4ebb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ebb;
$custom-light: #af82d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ebb",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 187
  },
  "hsl": {
    "h": 273.028,
    "s": 44.49,
    "l": 51.961
  },
  "oklch": {
    "l": 0.54399,
    "c": 0.16932,
    "h": 307.1
  },
  "luminance": 0.1444
}

Semantic roles & 50–950 ramp

primary
#8A4EBB
secondary
#B0CA9B
accent
#D4548D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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