#8A50B4#8A50B4

#8A50B4 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.158 H 308.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A50B4
RGBrgb(138, 80, 180)
HSLhsl(275, 40%, 51%)
HSVhsv(275, 56%, 71%)
CMYKcmyk(23.3%, 55.6%, 0%, 29.4%)
CIE-LABlab(44.85, 42.77, -43.86)
CIE-LCHlch(44.85, 61.26, 314.28°)
OKLaboklab(54.26% 0.0992 -0.1232)
OKLCHoklch(54.26% 0.158 308.8)
XYZxyz(21.5865, 14.4362, 44.8205)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50B4 #7AB450
analogous
#5850B4 #8A50B4 #B450AC
triadic
#8A50B4 #B48A50 #50B48A
tetradic
#8A50B4 #B45850 #7AB450 #50ACB4
square
#8A50B4 #B45850 #7AB450 #50ACB4
split-complementary
#8A50B4 #ACB450 #50B458
monochromatic
#492960 #6A3C8B #8A50B4 #A77BC6 #C3A6D9

Accessibility & contrast

On white

5.40
#8A50B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8A50B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50B4
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50B4#FFFFFF#000000##FFFFFF
##8A50B41.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B7
Deuteranopia (green-blind)
#446BB2
Tritanopia (blue-blind)
#84627A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a50b4;
/* rgb */ color: rgb(138, 80, 180);
/* oklch */ color: oklch(54.3% 0.158 308.8);
Tailwind
colors: {
  custom: {
    50: '#af83cb',
    500: '#8a50b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a50b4;
$custom-light: #af83cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50b4",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 180
  },
  "hsl": {
    "h": 274.8,
    "s": 40,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54262,
    "c": 0.15815,
    "h": 308.8
  },
  "luminance": 0.14436
}

Semantic roles & 50–950 ramp

primary
#8A50B4
secondary
#ACC69A
accent
#D0588A
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A50B4

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

Preview Lab → · Contrast checker → · Palette generator →

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