#8A46B0#8A46B0

#8A46B0 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.169 H 311.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A46B0
RGBrgb(138, 70, 176)
HSLhsl(278, 43%, 48%)
HSVhsv(278, 60%, 69%)
CMYKcmyk(21.6%, 60.2%, 0%, 31%)
CIE-LABlab(42.64, 47.12, -45.04)
CIE-LCHlch(42.64, 65.18, 316.30°)
OKLaboklab(52.57% 0.1122 -0.1266)
OKLCHoklch(52.57% 0.169 311.5)
XYZxyz(20.5064, 12.9187, 42.4792)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A46B0 #6CB046
analogous
#5546B0 #8A46B0 #B046A1
triadic
#8A46B0 #B08A46 #46B08A
tetradic
#8A46B0 #B05546 #6CB046 #46A1B0
square
#8A46B0 #B05546 #6CB046 #46A1B0
split-complementary
#8A46B0 #A1B046 #46B055
monochromatic
#452358 #683584 #8A46B0 #A66EC5 #C19AD7

Accessibility & contrast

On white

5.86
#8A46B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A46B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A46B0
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A46B0#FFFFFF#000000##FFFFFF
##8A46B01.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2061B3
Deuteranopia (green-blind)
#3D66AD
Tritanopia (blue-blind)
#865A74
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a46b0;
/* rgb */ color: rgb(138, 70, 176);
/* oklch */ color: oklch(52.6% 0.169 311.5);
Tailwind
colors: {
  custom: {
    50: '#af7dc8',
    500: '#8a46b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a46b0;
$custom-light: #af7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a46b0",
  "rgb": {
    "r": 138,
    "g": 70,
    "b": 176
  },
  "hsl": {
    "h": 278.491,
    "s": 43.089,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52568,
    "c": 0.16914,
    "h": 311.5
  },
  "luminance": 0.12918
}

Semantic roles & 50–950 ramp

primary
#8A46B0
secondary
#A2C38F
accent
#D35582
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A46B0

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

Preview Lab → · Contrast checker → · Palette generator →

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