#8A50BB#8A50BB

#8A50BB is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.166 H 306.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8A50BB
RGBrgb(138, 80, 187)
HSLhsl(273, 44%, 52%)
HSVhsv(273, 57%, 73%)
CMYKcmyk(26.2%, 57.2%, 0%, 26.7%)
CIE-LABlab(45.26, 44.41, -47.30)
CIE-LCHlch(45.26, 64.88, 313.20°)
OKLaboklab(54.69% 0.0994 -0.1332)
OKLCHoklch(54.69% 0.166 306.7)
XYZxyz(22.3177, 14.7287, 48.6713)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50BB #81BB50
analogous
#5450BB #8A50BB #BB50B7
triadic
#8A50BB #BB8A50 #50BB8A
tetradic
#8A50BB #BB5450 #81BB50 #50B7BB
square
#8A50BB #BB5450 #81BB50 #50B7BB
split-complementary
#8A50BB #B7BB50 #50BB54
monochromatic
#4B2868 #6B3A94 #8A50BB #A77CCC #C5A8DD

Accessibility & contrast

On white

5.32
#8A50BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8A50BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50BB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50BB#FFFFFF#000000##FFFFFF
##8A50BB1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2869BE
Deuteranopia (green-blind)
#3F6CB8
Tritanopia (blue-blind)
#82647E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a50bb;
/* rgb */ color: rgb(138, 80, 187);
/* oklch */ color: oklch(54.7% 0.166 306.7);
Tailwind
colors: {
  custom: {
    50: '#af83d0',
    500: '#8a50bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a50bb;
$custom-light: #af83d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50bb",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 187
  },
  "hsl": {
    "h": 272.523,
    "s": 44.033,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54693,
    "c": 0.16626,
    "h": 306.7
  },
  "luminance": 0.14728
}

Semantic roles & 50–950 ramp

primary
#8A50BB
secondary
#B1CB9C
accent
#D4548F
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A50BB

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

Preview Lab → · Contrast checker → · Palette generator →

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