#8A4AC2#8A4AC2

#8A4AC2 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.3% C 0.183 H 305.7°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8A4AC2
RGBrgb(138, 74, 194)
HSLhsl(272, 50%, 53%)
HSVhsv(272, 62%, 76%)
CMYKcmyk(28.9%, 61.9%, 0%, 23.9%)
CIE-LABlab(44.51, 49.23, -52.57)
CIE-LCHlch(44.51, 72.02, 313.12°)
OKLaboklab(54.29% 0.1069 -0.1487)
OKLCHoklch(54.29% 0.183 305.7)
XYZxyz(22.6655, 14.1961, 52.5745)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AC2 #82C24A
analogous
#4E4AC2 #8A4AC2 #C24ABE
triadic
#8A4AC2 #C28A4A #4AC28A
tetradic
#8A4AC2 #C24E4A #82C24A #4ABEC2
square
#8A4AC2 #C24E4A #82C24A #4ABEC2
split-complementary
#8A4AC2 #BEC24A #4AC24E
monochromatic
#4B256D #6B349B #8A4AC2 #A878D1 #C5A6E1

Accessibility & contrast

On white

5.47
#8A4AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8A4AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AC2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AC2#FFFFFF#000000##FFFFFF
##8A4AC21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0167C6
Deuteranopia (green-blind)
#306ABF
Tritanopia (blue-blind)
#80627F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4ac2;
/* rgb */ color: rgb(138, 74, 194);
/* oklch */ color: oklch(54.3% 0.183 305.7);
Tailwind
colors: {
  custom: {
    50: '#b080d5',
    500: '#8a4ac2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ac2;
$custom-light: #b080d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ac2",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 194
  },
  "hsl": {
    "h": 272,
    "s": 49.587,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54287,
    "c": 0.18313,
    "h": 305.7
  },
  "luminance": 0.14196
}

Semantic roles & 50–950 ramp

primary
#8A4AC2
secondary
#B2CE9A
accent
#D94F8F
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A4AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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