#8A50D2#8A50D2

#8A50D2 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.2% C 0.193 H 300.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A50D2
RGBrgb(138, 80, 210)
HSLhsl(267, 59%, 57%)
HSVhsv(267, 62%, 82%)
CMYKcmyk(34.3%, 61.9%, 0%, 17.6%)
CIE-LABlab(46.70, 50.00, -58.28)
CIE-LCHlch(46.70, 76.79, 310.63°)
OKLaboklab(56.21% 0.099 -0.1655)
OKLCHoklch(56.21% 0.193 300.9)
XYZxyz(24.9800, 15.7936, 62.6927)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50D2 #98D250
analogous
#5057D2 #8A50D2 #CB50D2
triadic
#8A50D2 #D28A50 #50D28A
tetradic
#8A50D2 #D25057 #98D250 #50D2CB
square
#8A50D2 #D25057 #98D250 #50D2CB
split-complementary
#8A50D2 #D2CB50 #57D250
monochromatic
#4E2285 #6B2FB6 #8A50D2 #AB81DF #CBB1EB

Accessibility & contrast

On white

5.05
#8A50D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8A50D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50D2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50D2#FFFFFF#000000##FFFFFF
##8A50D21.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#216ECF
Tritanopia (blue-blind)
#7B6C8A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a50d2;
/* rgb */ color: rgb(138, 80, 210);
/* oklch */ color: oklch(56.2% 0.193 300.9);
Tailwind
colors: {
  custom: {
    50: '#b184e1',
    500: '#8a50d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a50d2;
$custom-light: #b184e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50d2",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 210
  },
  "hsl": {
    "h": 266.769,
    "s": 59.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56207,
    "c": 0.19284,
    "h": 300.9
  },
  "luminance": 0.15794
}

Semantic roles & 50–950 ramp

primary
#8A50D2
secondary
#C2D9A4
accent
#E2469C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A50D2

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

Preview Lab → · Contrast checker → · Palette generator →

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