#8A50B0#8A50B0

#8A50B0 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.0% C 0.154 H 310.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8A50B0
RGBrgb(138, 80, 176)
HSLhsl(276, 38%, 50%)
HSVhsv(276, 55%, 69%)
CMYKcmyk(21.6%, 54.5%, 0%, 31%)
CIE-LABlab(44.63, 41.84, -41.87)
CIE-LCHlch(44.63, 59.19, 314.98°)
OKLaboklab(54.02% 0.0989 -0.1174)
OKLCHoklch(54.02% 0.154 310.1)
XYZxyz(21.1849, 14.2756, 42.7053)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50B0 #76B050
analogous
#5A50B0 #8A50B0 #B050A6
triadic
#8A50B0 #B08A50 #50B08A
tetradic
#8A50B0 #B05A50 #76B050 #50A6B0
square
#8A50B0 #B05A50 #76B050 #50A6B0
split-complementary
#8A50B0 #A6B050 #50B05A
monochromatic
#482A5C #693D86 #8A50B0 #A67AC3 #C2A4D6

Accessibility & contrast

On white

5.45
#8A50B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8A50B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50B0
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50B0#FFFFFF#000000##FFFFFF
##8A50B01.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B3
Deuteranopia (green-blind)
#476BAE
Tritanopia (blue-blind)
#856178
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a50b0;
/* rgb */ color: rgb(138, 80, 176);
/* oklch */ color: oklch(54.0% 0.154 310.1);
Tailwind
colors: {
  custom: {
    50: '#af83c8',
    500: '#8a50b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a50b0;
$custom-light: #af83c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50b0",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 176
  },
  "hsl": {
    "h": 276.25,
    "s": 37.795,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54022,
    "c": 0.15352,
    "h": 310.1
  },
  "luminance": 0.14275
}

Semantic roles & 50–950 ramp

primary
#8A50B0
secondary
#A9C398
accent
#CE5A88
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A50B0

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

Preview Lab → · Contrast checker → · Palette generator →

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