#8A4CDE#8A4CDE

#8A4CDE is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.5% C 0.212 H 298.9°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A4CDE
RGBrgb(138, 76, 222)
HSLhsl(265, 69%, 58%)
HSVhsv(265, 66%, 87%)
CMYKcmyk(37.8%, 65.8%, 0%, 12.9%)
CIE-LABlab(46.77, 55.03, -65.02)
CIE-LCHlch(46.77, 85.18, 310.25°)
OKLaboklab(56.52% 0.1024 -0.1853)
OKLCHoklch(56.52% 0.212 298.9)
XYZxyz(26.2472, 15.8458, 70.7688)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CDE #A0DE4C
analogous
#4C57DE #8A4CDE #D34CDE
triadic
#8A4CDE #DE8A4C #4CDE8A
tetradic
#8A4CDE #DE4C57 #A0DE4C #4CDED3
square
#8A4CDE #DE4C57 #A0DE4C #4CDED3
split-complementary
#8A4CDE #DED34C #57DE4C
monochromatic
#4F1B94 #6A25C8 #8A4CDE #AC80E8 #CEB3F1

Accessibility & contrast

On white

5.04
#8A4CDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8A4CDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CDE
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CDE#FFFFFF#000000##FFFFFF
##8A4CDE1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE2
Deuteranopia (green-blind)
#006DDB
Tritanopia (blue-blind)
#776E8F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4cde;
/* rgb */ color: rgb(138, 76, 222);
/* oklch */ color: oklch(56.5% 0.212 298.9);
Tailwind
colors: {
  custom: {
    50: '#b282e9',
    500: '#8a4cde',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cde;
$custom-light: #b282e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cde",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 222
  },
  "hsl": {
    "h": 265.479,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56517,
    "c": 0.2117,
    "h": 298.9
  },
  "luminance": 0.15846
}

Semantic roles & 50–950 ramp

primary
#8A4CDE
secondary
#C7E0A6
accent
#EC3CA1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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