#8A4EBC#8A4EBC

#8A4EBC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.170 H 306.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8A4EBC
RGBrgb(138, 78, 188)
HSLhsl(273, 45%, 52%)
HSVhsv(273, 59%, 74%)
CMYKcmyk(26.6%, 58.5%, 0%, 26.3%)
CIE-LABlab(44.92, 45.72, -48.43)
CIE-LCHlch(44.92, 66.60, 313.35°)
OKLaboklab(54.46% 0.102 -0.1365)
OKLCHoklch(54.46% 0.17 306.8)
XYZxyz(22.2808, 14.4831, 49.1890)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EBC #80BC4E
analogous
#534EBC #8A4EBC #BC4EB7
triadic
#8A4EBC #BC8A4E #4EBC8A
tetradic
#8A4EBC #BC534E #80BC4E #4EB7BC
square
#8A4EBC #BC534E #80BC4E #4EB7BC
split-complementary
#8A4EBC #B7BC4E #4EBC53
monochromatic
#4B2768 #6B3895 #8A4EBC #A77ACD #C5A7DE

Accessibility & contrast

On white

5.39
#8A4EBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#8A4EBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EBC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EBC#FFFFFF#000000##FFFFFF
##8A4EBC1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2268C0
Deuteranopia (green-blind)
#3B6BB9
Tritanopia (blue-blind)
#82637D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4ebc;
/* rgb */ color: rgb(138, 78, 188);
/* oklch */ color: oklch(54.5% 0.170 306.8);
Tailwind
colors: {
  custom: {
    50: '#af82d1',
    500: '#8a4ebc',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ebc;
$custom-light: #af82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ebc",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 188
  },
  "hsl": {
    "h": 272.727,
    "s": 45.082,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54462,
    "c": 0.17046,
    "h": 306.8
  },
  "luminance": 0.14483
}

Semantic roles & 50–950 ramp

primary
#8A4EBC
secondary
#B1CB9B
accent
#D5538E
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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