#8A49AB#8A49AB

#8A49AB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.7% C 0.159 H 312.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8A49AB
RGBrgb(138, 73, 171)
HSLhsl(280, 40%, 48%)
HSVhsv(280, 57%, 67%)
CMYKcmyk(19.3%, 57.3%, 0%, 32.9%)
CIE-LABlab(42.93, 44.45, -41.62)
CIE-LCHlch(42.93, 60.90, 316.88°)
OKLaboklab(52.68% 0.1081 -0.1166)
OKLCHoklch(52.68% 0.159 312.8)
XYZxyz(20.2132, 13.1092, 39.9857)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A49AB #6AAB49
analogous
#5949AB #8A49AB #AB499B
triadic
#8A49AB #AB8A49 #49AB8A
tetradic
#8A49AB #AB5949 #6AAB49 #499BAB
square
#8A49AB #AB5949 #6AAB49 #499BAB
split-complementary
#8A49AB #9BAB49 #49AB59
monochromatic
#452455 #673780 #8A49AB #A66FC2 #C19AD4

Accessibility & contrast

On white

5.80
#8A49AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A49AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A49AB
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A49AB#FFFFFF#000000##FFFFFF
##8A49AB1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C62AE
Deuteranopia (green-blind)
#4467A9
Tritanopia (blue-blind)
#875A73
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a49ab;
/* rgb */ color: rgb(138, 73, 171);
/* oklch */ color: oklch(52.7% 0.159 312.8);
Tailwind
colors: {
  custom: {
    50: '#af7fc4',
    500: '#8a49ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a49ab;
$custom-light: #af7fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a49ab",
  "rgb": {
    "r": 138,
    "g": 73,
    "b": 171
  },
  "hsl": {
    "h": 279.796,
    "s": 40.164,
    "l": 47.843
  },
  "oklch": {
    "l": 0.52683,
    "c": 0.15904,
    "h": 312.8
  },
  "luminance": 0.13109
}

Semantic roles & 50–950 ramp

primary
#8A49AB
secondary
#A0C08F
accent
#D05880
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A49AB

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

Preview Lab → · Contrast checker → · Palette generator →

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