#8A50C4#8A50C4

#8A50C4 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.3% C 0.177 H 304.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A50C4
RGBrgb(138, 80, 196)
HSLhsl(270, 50%, 54%)
HSVhsv(270, 59%, 77%)
CMYKcmyk(29.6%, 59.2%, 0%, 23.1%)
CIE-LABlab(45.81, 46.57, -51.65)
CIE-LCHlch(45.81, 69.55, 312.04°)
OKLaboklab(55.27% 0.0995 -0.146)
OKLCHoklch(55.27% 0.177 304.3)
XYZxyz(23.3115, 15.1262, 53.9054)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50C4 #8AC450
analogous
#5050C4 #8A50C4 #C450C4
triadic
#8A50C4 #C48A50 #50C48A
tetradic
#8A50C4 #C45050 #8AC450 #50C4C4
square
#8A50C4 #C45050 #8AC450 #50C4C4
split-complementary
#8A50C4 #C4C450 #50C450
monochromatic
#4D2773 #6B36A1 #8A50C4 #A97ED3 #C7ACE3

Accessibility & contrast

On white

5.22
#8A50C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8A50C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50C4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50C4#FFFFFF#000000##FFFFFF
##8A50C41.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6BC8
Deuteranopia (green-blind)
#366CC1
Tritanopia (blue-blind)
#806782
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a50c4;
/* rgb */ color: rgb(138, 80, 196);
/* oklch */ color: oklch(55.3% 0.177 304.3);
Tailwind
colors: {
  custom: {
    50: '#b084d6',
    500: '#8a50c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a50c4;
$custom-light: #b084d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50c4",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 196
  },
  "hsl": {
    "h": 270,
    "s": 49.573,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55269,
    "c": 0.17669,
    "h": 304.3
  },
  "luminance": 0.15126
}

Semantic roles & 50–950 ramp

primary
#8A50C4
secondary
#B8D19F
accent
#D94F94
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A50C4

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

Preview Lab → · Contrast checker → · Palette generator →

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