#8A4CCE#8A4CCE

#8A4CCE is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.4% C 0.194 H 302.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A4CCE
RGBrgb(138, 76, 206)
HSLhsl(269, 57%, 55%)
HSVhsv(269, 63%, 81%)
CMYKcmyk(33%, 63.1%, 0%, 19.2%)
CIE-LABlab(45.67, 51.09, -57.64)
CIE-LCHlch(45.67, 77.02, 311.55°)
OKLaboklab(55.38% 0.1039 -0.1636)
OKLCHoklch(55.38% 0.194 302.4)
XYZxyz(24.2037, 15.0284, 60.0062)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CCE #90CE4C
analogous
#4C4FCE #8A4CCE #CB4CCE
triadic
#8A4CCE #CE8A4C #4CCE8A
tetradic
#8A4CCE #CE4C4F #90CE4C #4CCECB
square
#8A4CCE #CE4C4F #90CE4C #4CCECB
split-complementary
#8A4CCE #CECB4C #4FCE4C
monochromatic
#4E227D #6B2FAD #8A4CCE #A97CDB #C9ACE8

Accessibility & contrast

On white

5.24
#8A4CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8A4CCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CCE
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CCE#FFFFFF#000000##FFFFFF
##8A4CCE1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#216CCB
Tritanopia (blue-blind)
#7C6886
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4cce;
/* rgb */ color: rgb(138, 76, 206);
/* oklch */ color: oklch(55.4% 0.194 302.4);
Tailwind
colors: {
  custom: {
    50: '#b181de',
    500: '#8a4cce',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cce;
$custom-light: #b181de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cce",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 206
  },
  "hsl": {
    "h": 268.615,
    "s": 57.018,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55377,
    "c": 0.19379,
    "h": 302.4
  },
  "luminance": 0.15028
}

Semantic roles & 50–950 ramp

primary
#8A4CCE
secondary
#BCD6A0
accent
#E04897
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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