#8A4CDB#8A4CDB

#8A4CDB is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.3% C 0.208 H 299.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A4CDB
RGBrgb(138, 76, 219)
HSLhsl(266, 67%, 58%)
HSVhsv(266, 65%, 86%)
CMYKcmyk(37%, 65.3%, 0%, 14.1%)
CIE-LABlab(46.56, 54.29, -63.65)
CIE-LCHlch(46.56, 83.66, 310.46°)
OKLaboklab(56.3% 0.1028 -0.1812)
OKLCHoklch(56.3% 0.208 299.5)
XYZxyz(25.8487, 15.6864, 68.6700)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CDB #9DDB4C
analogous
#4C55DB #8A4CDB #D24CDB
triadic
#8A4CDB #DB8A4C #4CDB8A
tetradic
#8A4CDB #DB4C55 #9DDB4C #4CDBD2
square
#8A4CDB #DB4C55 #9DDB4C #4CDBD2
split-complementary
#8A4CDB #DBD24C #55DB4C
monochromatic
#4F1D90 #6B27C3 #8A4CDB #AB7FE5 #CDB2EF

Accessibility & contrast

On white

5.08
#8A4CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8A4CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CDB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CDB#FFFFFF#000000##FFFFFF
##8A4CDB1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#786D8D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4cdb;
/* rgb */ color: rgb(138, 76, 219);
/* oklch */ color: oklch(56.3% 0.208 299.5);
Tailwind
colors: {
  custom: {
    50: '#b282e7',
    500: '#8a4cdb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cdb;
$custom-light: #b282e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cdb",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 266.014,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56298,
    "c": 0.20835,
    "h": 299.5
  },
  "luminance": 0.15687
}

Semantic roles & 50–950 ramp

primary
#8A4CDB
secondary
#C5DEA5
accent
#E93E9F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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