#8A50B8#8A50B8

#8A50B8 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.163 H 307.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8A50B8
RGBrgb(138, 80, 184)
HSLhsl(273, 42%, 52%)
HSVhsv(273, 57%, 72%)
CMYKcmyk(25%, 56.5%, 0%, 27.8%)
CIE-LABlab(45.08, 43.70, -45.83)
CIE-LCHlch(45.08, 63.33, 313.64°)
OKLaboklab(54.51% 0.0993 -0.1289)
OKLCHoklch(54.51% 0.163 307.6)
XYZxyz(21.9999, 14.6016, 46.9975)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50B8 #7EB850
analogous
#5650B8 #8A50B8 #B850B2
triadic
#8A50B8 #B88A50 #50B88A
tetradic
#8A50B8 #B85650 #7EB850 #50B2B8
square
#8A50B8 #B85650 #7EB850 #50B2B8
split-complementary
#8A50B8 #B2B850 #50B856
monochromatic
#4A2965 #6A3B90 #8A50B8 #A77CCA #C4A7DB

Accessibility & contrast

On white

5.36
#8A50B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#8A50B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50B8
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50B8#FFFFFF#000000##FFFFFF
##8A50B81.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C68BB
Deuteranopia (green-blind)
#416BB5
Tritanopia (blue-blind)
#83637C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a50b8;
/* rgb */ color: rgb(138, 80, 184);
/* oklch */ color: oklch(54.5% 0.163 307.6);
Tailwind
colors: {
  custom: {
    50: '#af83ce',
    500: '#8a50b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a50b8;
$custom-light: #af83ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50b8",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 184
  },
  "hsl": {
    "h": 273.462,
    "s": 42.276,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54507,
    "c": 0.16278,
    "h": 307.6
  },
  "luminance": 0.14601
}

Semantic roles & 50–950 ramp

primary
#8A50B8
secondary
#AFC99B
accent
#D2568D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A50B8

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

Preview Lab → · Contrast checker → · Palette generator →

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