#8A50B3#8A50B3

#8A50B3 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.2% C 0.157 H 309.2°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A50B3
RGBrgb(138, 80, 179)
HSLhsl(275, 39%, 51%)
HSVhsv(275, 55%, 70%)
CMYKcmyk(22.9%, 55.3%, 0%, 29.8%)
CIE-LABlab(44.80, 42.53, -43.36)
CIE-LCHlch(44.80, 60.74, 314.45°)
OKLaboklab(54.2% 0.0991 -0.1217)
OKLCHoklch(54.2% 0.157 309.2)
XYZxyz(21.4850, 14.3956, 44.2859)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50B3 #79B350
analogous
#5850B3 #8A50B3 #B350AA
triadic
#8A50B3 #B38A50 #50B38A
tetradic
#8A50B3 #B35850 #79B350 #50AAB3
square
#8A50B3 #B35850 #79B350 #50AAB3
split-complementary
#8A50B3 #AAB350 #50B358
monochromatic
#49295F #6A3C8A #8A50B3 #A77BC6 #C3A5D8

Accessibility & contrast

On white

5.41
#8A50B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8A50B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50B3
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50B3#FFFFFF#000000##FFFFFF
##8A50B31.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B6
Deuteranopia (green-blind)
#456BB1
Tritanopia (blue-blind)
#84627A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a50b3;
/* rgb */ color: rgb(138, 80, 179);
/* oklch */ color: oklch(54.2% 0.157 309.2);
Tailwind
colors: {
  custom: {
    50: '#af83ca',
    500: '#8a50b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a50b3;
$custom-light: #af83ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50b3",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 179
  },
  "hsl": {
    "h": 275.152,
    "s": 39.442,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54202,
    "c": 0.15698,
    "h": 309.2
  },
  "luminance": 0.14395
}

Semantic roles & 50–950 ramp

primary
#8A50B3
secondary
#ACC599
accent
#CF588A
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A50B3

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

Preview Lab → · Contrast checker → · Palette generator →

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