#8A49A2#8A49A2

#8A49A2 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.2% C 0.149 H 316.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8A49A2
RGBrgb(138, 73, 162)
HSLhsl(284, 38%, 46%)
HSVhsv(284, 55%, 64%)
CMYKcmyk(14.8%, 54.9%, 0%, 36.5%)
CIE-LABlab(42.43, 42.47, -37.07)
CIE-LCHlch(42.43, 56.38, 318.88°)
OKLaboklab(52.15% 0.1075 -0.1034)
OKLCHoklch(52.15% 0.149 316.1)
XYZxyz(19.3844, 12.7776, 35.6206)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A49A2 #61A249
analogous
#5D49A2 #8A49A2 #A2498D
triadic
#8A49A2 #A28A49 #49A28A
tetradic
#8A49A2 #A25D49 #61A249 #498DA2
square
#8A49A2 #A25D49 #61A249 #498DA2
split-complementary
#8A49A2 #8DA249 #49A25D
monochromatic
#42234E #663678 #8A49A2 #A76CBD #C096D0

Accessibility & contrast

On white

5.91
#8A49A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8A49A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A49A2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A49A2#FFFFFF#000000##FFFFFF
##8A49A21.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A5
Deuteranopia (green-blind)
#4A66A0
Tritanopia (blue-blind)
#89576E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a49a2;
/* rgb */ color: rgb(138, 73, 162);
/* oklch */ color: oklch(52.2% 0.149 316.1);
Tailwind
colors: {
  custom: {
    50: '#ae7fbe',
    500: '#8a49a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a49a2;
$custom-light: #ae7fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a49a2",
  "rgb": {
    "r": 138,
    "g": 73,
    "b": 162
  },
  "hsl": {
    "h": 283.82,
    "s": 37.872,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52153,
    "c": 0.14916,
    "h": 316.1
  },
  "luminance": 0.12777
}

Semantic roles & 50–950 ramp

primary
#8A49A2
secondary
#98BC8B
accent
#CE5A79
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A49A2

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

Preview Lab → · Contrast checker → · Palette generator →

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