#8A4EBA#8A4EBA

#8A4EBA is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.168 H 307.3°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A4EBA
RGBrgb(138, 78, 186)
HSLhsl(273, 44%, 52%)
HSVhsv(273, 58%, 73%)
CMYKcmyk(25.8%, 58.1%, 0%, 27.1%)
CIE-LABlab(44.80, 45.25, -47.46)
CIE-LCHlch(44.80, 65.57, 313.63°)
OKLaboklab(54.34% 0.102 -0.1337)
OKLCHoklch(54.34% 0.168 307.3)
XYZxyz(22.0667, 14.3975, 48.0614)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EBA #7EBA4E
analogous
#544EBA #8A4EBA #BA4EB4
triadic
#8A4EBA #BA8A4E #4EBA8A
tetradic
#8A4EBA #BA544E #7EBA4E #4EB4BA
square
#8A4EBA #BA544E #7EBA4E #4EB4BA
split-complementary
#8A4EBA #B4BA4E #4EBA54
monochromatic
#4A2866 #6A3992 #8A4EBA #A77ACB #C4A6DC

Accessibility & contrast

On white

5.41
#8A4EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8A4EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EBA
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EBA#FFFFFF#000000##FFFFFF
##8A4EBA1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2568BE
Deuteranopia (green-blind)
#3D6BB7
Tritanopia (blue-blind)
#83637C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4eba;
/* rgb */ color: rgb(138, 78, 186);
/* oklch */ color: oklch(54.3% 0.168 307.3);
Tailwind
colors: {
  custom: {
    50: '#af82cf',
    500: '#8a4eba',
    950: '#000000',
  },
}
SCSS
$custom: #8a4eba;
$custom-light: #af82cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4eba",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 273.333,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54335,
    "c": 0.16817,
    "h": 307.3
  },
  "luminance": 0.14397
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A4EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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