#8A4EBD#8A4EBD

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

Color values

HEX#8A4EBD
RGBrgb(138, 78, 189)
HSLhsl(272, 46%, 52%)
HSVhsv(272, 59%, 74%)
CMYKcmyk(27%, 58.7%, 0%, 25.9%)
CIE-LABlab(44.98, 45.96, -48.92)
CIE-LCHlch(44.98, 67.12, 313.21°)
OKLaboklab(54.53% 0.102 -0.138)
OKLCHoklch(54.53% 0.172 306.5)
XYZxyz(22.3890, 14.5264, 49.7586)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EBD #81BD4E
analogous
#524EBD #8A4EBD #BD4EB9
triadic
#8A4EBD #BD8A4E #4EBD8A
tetradic
#8A4EBD #BD524E #81BD4E #4EB9BD
square
#8A4EBD #BD524E #81BD4E #4EB9BD
split-complementary
#8A4EBD #B9BD4E #4EBD52
monochromatic
#4B2769 #6B3896 #8A4EBD #A77BCE #C5A7DE

Accessibility & contrast

On white

5.38
#8A4EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8A4EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EBD
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EBD#FFFFFF#000000##FFFFFF
##8A4EBD1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2068C1
Deuteranopia (green-blind)
#3A6BBA
Tritanopia (blue-blind)
#82637E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4ebd;
/* rgb */ color: rgb(138, 78, 189);
/* oklch */ color: oklch(54.5% 0.172 306.5);
Tailwind
colors: {
  custom: {
    50: '#af82d1',
    500: '#8a4ebd',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ebd;
$custom-light: #af82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ebd",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 272.432,
    "s": 45.679,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54526,
    "c": 0.17161,
    "h": 306.5
  },
  "luminance": 0.14526
}

Semantic roles & 50–950 ramp

primary
#8A4EBD
secondary
#B1CC9B
accent
#D5528F
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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