#8A46B6#8A46B6

#8A46B6 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.0% C 0.176 H 309.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8A46B6
RGBrgb(138, 70, 182)
HSLhsl(276, 44%, 49%)
HSVhsv(276, 62%, 71%)
CMYKcmyk(24.2%, 61.5%, 0%, 28.6%)
CIE-LABlab(43.01, 48.48, -47.98)
CIE-LCHlch(43.01, 68.21, 315.30°)
OKLaboklab(52.95% 0.1122 -0.1352)
OKLCHoklch(52.95% 0.176 309.7)
XYZxyz(21.1133, 13.1614, 45.6751)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46B6 #72B646
analogous
#5246B6 #8A46B6 #B646AA
triadic
#8A46B6 #B68A46 #46B68A
tetradic
#8A46B6 #B65246 #72B646 #46AAB6
square
#8A46B6 #B65246 #72B646 #46AAB6
split-complementary
#8A46B6 #AAB646 #46B652
monochromatic
#47245E #68358A #8A46B6 #A671C8 #C29DD9

Accessibility & contrast

On white

5.78
#8A46B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8A46B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46B6
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46B6#FFFFFF#000000##FFFFFF
##8A46B61.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1563BA
Deuteranopia (green-blind)
#3867B3
Tritanopia (blue-blind)
#845C77
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a46b6;
/* rgb */ color: rgb(138, 70, 182);
/* oklch */ color: oklch(53.0% 0.176 309.7);
Tailwind
colors: {
  custom: {
    50: '#af7dcc',
    500: '#8a46b6',
    950: '#000000',
  },
}
SCSS
$custom: #8a46b6;
$custom-light: #af7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46b6",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 182
  },
  "hsl": {
    "h": 276.429,
    "s": 44.444,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52951,
    "c": 0.17567,
    "h": 309.7
  },
  "luminance": 0.13161
}

Semantic roles & 50–950 ramp

primary
#8A46B6
secondary
#A6C692
accent
#D45486
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A46B6

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

Preview Lab → · Contrast checker → · Palette generator →

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