#8A4DBC#8A4DBC

#8A4DBC is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.3% C 0.172 H 306.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A4DBC
RGBrgb(138, 77, 188)
HSLhsl(273, 45%, 52%)
HSVhsv(273, 59%, 74%)
CMYKcmyk(26.6%, 59%, 0%, 26.3%)
CIE-LABlab(44.72, 46.25, -48.75)
CIE-LCHlch(44.72, 67.20, 313.49°)
OKLaboklab(54.32% 0.1033 -0.1375)
OKLCHoklch(54.32% 0.172 306.9)
XYZxyz(22.2103, 14.3421, 49.1654)
Luminance0.1434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DBC #7FBC4D
analogous
#534DBC #8A4DBC #BC4DB7
triadic
#8A4DBC #BC8A4D #4DBC8A
tetradic
#8A4DBC #BC534D #7FBC4D #4DB7BC
square
#8A4DBC #BC534D #7FBC4D #4DB7BC
split-complementary
#8A4DBC #B7BC4D #4DBC53
monochromatic
#4B2768 #6A3894 #8A4DBC #A779CD #C4A6DD

Accessibility & contrast

On white

5.43
#8A4DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8A4DBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DBC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DBC#FFFFFF#000000##FFFFFF
##8A4DBC1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F68C0
Deuteranopia (green-blind)
#3A6AB9
Tritanopia (blue-blind)
#82627D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4dbc;
/* rgb */ color: rgb(138, 77, 188);
/* oklch */ color: oklch(54.3% 0.172 306.9);
Tailwind
colors: {
  custom: {
    50: '#af82d1',
    500: '#8a4dbc',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dbc;
$custom-light: #af82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dbc",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 188
  },
  "hsl": {
    "h": 272.973,
    "s": 45.306,
    "l": 51.961
  },
  "oklch": {
    "l": 0.54317,
    "c": 0.17196,
    "h": 306.9
  },
  "luminance": 0.14342
}

Semantic roles & 50–950 ramp

primary
#8A4DBC
secondary
#B0CB9A
accent
#D5538D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A4DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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