#8A46A7#8A46A7

#8A46A7 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.0% C 0.159 H 314.6°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A46A7
RGBrgb(138, 70, 167)
HSLhsl(282, 41%, 46%)
HSVhsv(282, 58%, 65%)
CMYKcmyk(17.4%, 58.1%, 0%, 34.5%)
CIE-LABlab(42.11, 45.13, -40.54)
CIE-LCHlch(42.11, 60.67, 318.07°)
OKLaboklab(52.02% 0.112 -0.1134)
OKLCHoklch(52.02% 0.159 314.6)
XYZxyz(19.6453, 12.5742, 37.9439)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46A7 #63A746
analogous
#5A46A7 #8A46A7 #A74694
triadic
#8A46A7 #A78A46 #46A78A
tetradic
#8A46A7 #A75A46 #63A746 #4694A7
square
#8A46A7 #A75A46 #63A746 #4694A7
split-complementary
#8A46A7 #94A746 #46A75A
monochromatic
#432251 #66347C #8A46A7 #A76AC0 #C095D3

Accessibility & contrast

On white

5.97
#8A46A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8A46A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46A7
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46A7#FFFFFF#000000##FFFFFF
##8A46A71.005.973.515.97
#FFFFFF5.971.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5FAA
Deuteranopia (green-blind)
#4465A5
Tritanopia (blue-blind)
#885670
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a46a7;
/* rgb */ color: rgb(138, 70, 167);
/* oklch */ color: oklch(52.0% 0.159 314.6);
Tailwind
colors: {
  custom: {
    50: '#af7dc1',
    500: '#8a46a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a46a7;
$custom-light: #af7dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46a7",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 167
  },
  "hsl": {
    "h": 282.062,
    "s": 40.928,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52015,
    "c": 0.15939,
    "h": 314.6
  },
  "luminance": 0.12574
}

Semantic roles & 50–950 ramp

primary
#8A46A7
secondary
#9ABE8A
accent
#D1577B
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A46A7

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

Preview Lab → · Contrast checker → · Palette generator →

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