#8A50D5#8A50D5

#8A50D5 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.4% C 0.196 H 300.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A50D5
RGBrgb(138, 80, 213)
HSLhsl(266, 61%, 57%)
HSVhsv(266, 62%, 84%)
CMYKcmyk(35.2%, 62.4%, 0%, 16.5%)
CIE-LABlab(46.90, 50.75, -59.67)
CIE-LCHlch(46.90, 78.34, 310.38°)
OKLaboklab(56.42% 0.0988 -0.1696)
OKLCHoklch(56.42% 0.196 300.2)
XYZxyz(25.3572, 15.9445, 64.6796)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50D5 #9BD550
analogous
#5059D5 #8A50D5 #CC50D5
triadic
#8A50D5 #D58A50 #50D58A
tetradic
#8A50D5 #D55059 #9BD550 #50D5CC
square
#8A50D5 #D55059 #9BD550 #50D5CC
split-complementary
#8A50D5 #D5CC50 #59D550
monochromatic
#4F218A #6B2DBB #8A50D5 #AB81E1 #CCB3ED

Accessibility & contrast

On white

5.01
#8A50D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A50D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50D5
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50D5#FFFFFF#000000##FFFFFF
##8A50D51.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#1B6ED2
Tritanopia (blue-blind)
#7A6D8B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a50d5;
/* rgb */ color: rgb(138, 80, 213);
/* oklch */ color: oklch(56.4% 0.196 300.2);
Tailwind
colors: {
  custom: {
    50: '#b184e3',
    500: '#8a50d5',
    950: '#000000',
  },
}
SCSS
$custom: #8a50d5;
$custom-light: #b184e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50d5",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 213
  },
  "hsl": {
    "h": 266.165,
    "s": 61.29,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56415,
    "c": 0.19628,
    "h": 300.2
  },
  "luminance": 0.15945
}

Semantic roles & 50–950 ramp

primary
#8A50D5
secondary
#C4DBA6
accent
#E4439E
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8A50D5

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

Preview Lab → · Contrast checker → · Palette generator →

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