#8A50B1#8A50B1

#8A50B1 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.1% C 0.155 H 309.8°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8A50B1
RGBrgb(138, 80, 177)
HSLhsl(276, 38%, 50%)
HSVhsv(276, 55%, 69%)
CMYKcmyk(22%, 54.8%, 0%, 30.6%)
CIE-LABlab(44.68, 42.07, -42.37)
CIE-LCHlch(44.68, 59.71, 314.80°)
OKLaboklab(54.08% 0.099 -0.1188)
OKLCHoklch(54.08% 0.155 309.8)
XYZxyz(21.2842, 14.3153, 43.2283)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50B1 #77B150
analogous
#5950B1 #8A50B1 #B150A8
triadic
#8A50B1 #B18A50 #50B18A
tetradic
#8A50B1 #B15950 #77B150 #50A8B1
square
#8A50B1 #B15950 #77B150 #50A8B1
split-complementary
#8A50B1 #A8B150 #50B159
monochromatic
#48295D #693C87 #8A50B1 #A67AC4 #C3A5D7

Accessibility & contrast

On white

5.44
#8A50B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8A50B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50B1
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50B1#FFFFFF#000000##FFFFFF
##8A50B11.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3367B4
Deuteranopia (green-blind)
#476BAF
Tritanopia (blue-blind)
#856179
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a50b1;
/* rgb */ color: rgb(138, 80, 177);
/* oklch */ color: oklch(54.1% 0.155 309.8);
Tailwind
colors: {
  custom: {
    50: '#af83c9',
    500: '#8a50b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a50b1;
$custom-light: #af83c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50b1",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 177
  },
  "hsl": {
    "h": 275.876,
    "s": 38.34,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54082,
    "c": 0.15467,
    "h": 309.8
  },
  "luminance": 0.14315
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A50B1

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

Preview Lab → · Contrast checker → · Palette generator →

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