#8A50B7#8A50B7

#8A50B7 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.4% C 0.162 H 307.9°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8A50B7
RGBrgb(138, 80, 183)
HSLhsl(274, 42%, 52%)
HSVhsv(274, 56%, 72%)
CMYKcmyk(24.6%, 56.3%, 0%, 28.2%)
CIE-LABlab(45.03, 43.47, -45.34)
CIE-LCHlch(45.03, 62.81, 313.79°)
OKLaboklab(54.45% 0.0993 -0.1275)
OKLCHoklch(54.45% 0.162 307.9)
XYZxyz(21.8954, 14.5598, 46.4474)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A50B7 #7DB750
analogous
#5750B7 #8A50B7 #B750B1
triadic
#8A50B7 #B78A50 #50B78A
tetradic
#8A50B7 #B75750 #7DB750 #50B1B7
square
#8A50B7 #B75750 #7DB750 #50B1B7
split-complementary
#8A50B7 #B1B750 #50B757
monochromatic
#4A2964 #6A3B8F #8A50B7 #A77BC9 #C4A7DB

Accessibility & contrast

On white

5.37
#8A50B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8A50B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A50B7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A50B7#FFFFFF#000000##FFFFFF
##8A50B71.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D68BA
Deuteranopia (green-blind)
#426BB4
Tritanopia (blue-blind)
#83637C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a50b7;
/* rgb */ color: rgb(138, 80, 183);
/* oklch */ color: oklch(54.4% 0.162 307.9);
Tailwind
colors: {
  custom: {
    50: '#af83cd',
    500: '#8a50b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a50b7;
$custom-light: #af83cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a50b7",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 183
  },
  "hsl": {
    "h": 273.786,
    "s": 41.7,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54445,
    "c": 0.16162,
    "h": 307.9
  },
  "luminance": 0.14559
}

Semantic roles & 50–950 ramp

primary
#8A50B7
secondary
#AFC89B
accent
#D2568C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A50B7

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

Preview Lab → · Contrast checker → · Palette generator →

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