#8A50B2#8A50B2

#8A50B2 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.1% C 0.156 H 309.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8A50B2
RGBrgb(138, 80, 178)
HSLhsl(276, 39%, 51%)
HSVhsv(276, 55%, 70%)
CMYKcmyk(22.5%, 55.1%, 0%, 30.2%)
CIE-LABlab(44.74, 42.30, -42.87)
CIE-LCHlch(44.74, 60.22, 314.62°)
OKLaboklab(54.14% 0.0991 -0.1203)
OKLCHoklch(54.14% 0.156 309.5)
XYZxyz(21.3842, 14.3553, 43.7552)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50B2 #78B250
analogous
#5950B2 #8A50B2 #B250A9
triadic
#8A50B2 #B28A50 #50B28A
tetradic
#8A50B2 #B25950 #78B250 #50A9B2
square
#8A50B2 #B25950 #78B250 #50A9B2
split-complementary
#8A50B2 #A9B250 #50B259
monochromatic
#49295E #693C89 #8A50B2 #A67AC5 #C3A5D7

Accessibility & contrast

On white

5.42
#8A50B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8A50B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50B2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50B2#FFFFFF#000000##FFFFFF
##8A50B21.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3267B5
Deuteranopia (green-blind)
#466BB0
Tritanopia (blue-blind)
#856179
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a50b2;
/* rgb */ color: rgb(138, 80, 178);
/* oklch */ color: oklch(54.1% 0.156 309.5);
Tailwind
colors: {
  custom: {
    50: '#af83c9',
    500: '#8a50b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a50b2;
$custom-light: #af83c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50b2",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 178
  },
  "hsl": {
    "h": 275.51,
    "s": 38.889,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54141,
    "c": 0.15583,
    "h": 309.5
  },
  "luminance": 0.14355
}

Semantic roles & 50–950 ramp

primary
#8A50B2
secondary
#ABC599
accent
#CF5989
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A50B2

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

Preview Lab → · Contrast checker → · Palette generator →

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