#8A49B2#8A49B2

#8A49B2 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.1% C 0.167 H 310.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A49B2
RGBrgb(138, 73, 178)
HSLhsl(277, 42%, 49%)
HSVhsv(277, 59%, 70%)
CMYKcmyk(22.5%, 59%, 0%, 30.2%)
CIE-LABlab(43.33, 46.03, -45.10)
CIE-LCHlch(43.33, 64.44, 315.58°)
OKLaboklab(53.11% 0.1083 -0.1268)
OKLCHoklch(53.11% 0.167 310.5)
XYZxyz(20.8981, 13.3831, 43.5932)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A49B2 #71B249
analogous
#5649B2 #8A49B2 #B249A6
triadic
#8A49B2 #B28A49 #49B28A
tetradic
#8A49B2 #B25649 #71B249 #49A6B2
square
#8A49B2 #B25649 #71B249 #49A6B2
split-complementary
#8A49B2 #A6B249 #49B256
monochromatic
#47255B #683787 #8A49B2 #A673C5 #C29ED7

Accessibility & contrast

On white

5.71
#8A49B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A49B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A49B2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A49B2#FFFFFF#000000##FFFFFF
##8A49B21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2463B5
Deuteranopia (green-blind)
#3F68AF
Tritanopia (blue-blind)
#855C76
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a49b2;
/* rgb */ color: rgb(138, 73, 178);
/* oklch */ color: oklch(53.1% 0.167 310.5);
Tailwind
colors: {
  custom: {
    50: '#af7fc9',
    500: '#8a49b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a49b2;
$custom-light: #af7fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a49b2",
  "rgb": {
    "r": 138,
    "g": 73,
    "b": 178
  },
  "hsl": {
    "h": 277.143,
    "s": 41.833,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53113,
    "c": 0.16677,
    "h": 310.5
  },
  "luminance": 0.13383
}

Semantic roles & 50–950 ramp

primary
#8A49B2
secondary
#A6C493
accent
#D25685
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A49B2

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

Preview Lab → · Contrast checker → · Palette generator →

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