#50218E#50218E

#50218E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.167 H 297.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#50218E
RGBrgb(80, 33, 142)
HSLhsl(266, 62%, 34%)
HSVhsv(266, 77%, 56%)
CMYKcmyk(43.7%, 76.8%, 0%, 44.3%)
CIE-LABlab(26.00, 44.59, -51.74)
CIE-LCHlch(26.00, 68.30, 310.76°)
OKLaboklab(38.21% 0.0768 -0.148)
OKLCHoklch(38.21% 0.167 297.4)
XYZxyz(8.7333, 4.7460, 26.0419)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50218E #5F8E21
analogous
#21288E #50218E #87218E
triadic
#50218E #8E5021 #218E50
tetradic
#50218E #8E2128 #5F8E21 #218E87
square
#50218E #8E2128 #5F8E21 #218E87
split-complementary
#50218E #8E8721 #288E21
monochromatic
#180A2B #34155C #50218E #6C2DC0 #8C52D7

Accessibility & contrast

On white

10.77
#50218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#50218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50218E
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50218E#FFFFFF#000000##FFFFFF
##50218E1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#403E56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #50218e;
/* rgb */ color: rgb(80, 33, 142);
/* oklch */ color: oklch(38.2% 0.167 297.4);
Tailwind
colors: {
  custom: {
    50: '#8761b0',
    500: '#50218e',
    950: '#000000',
  },
}
SCSS
$custom: #50218e;
$custom-light: #8761b0;
$custom-dark: #000000;
JSON
{
  "hex": "#50218e",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 265.872,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38215,
    "c": 0.16675,
    "h": 297.4
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#50218E
secondary
#8DBA50
accent
#E5429F
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #50218E

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

Preview Lab → · Contrast checker → · Palette generator →

#50218E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva