#50218F#50218F

#50218F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.168 H 297.1°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#50218F
RGBrgb(80, 33, 143)
HSLhsl(266, 63%, 35%)
HSVhsv(266, 77%, 56%)
CMYKcmyk(44.1%, 76.9%, 0%, 43.9%)
CIE-LABlab(26.09, 44.86, -52.21)
CIE-LCHlch(26.09, 68.83, 310.67°)
OKLaboklab(38.31% 0.0765 -0.1494)
OKLCHoklch(38.31% 0.168 297.1)
XYZxyz(8.8087, 4.7762, 26.4391)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50218F #608F21
analogous
#21298F #50218F #87218F
triadic
#50218F #8F5021 #218F50
tetradic
#50218F #8F2129 #608F21 #218F87
square
#50218F #8F2129 #608F21 #218F87
split-complementary
#50218F #8F8721 #298F21
monochromatic
#180A2C #34165D #50218F #6C2CC1 #8C53D7

Accessibility & contrast

On white

10.74
#50218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#50218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50218F
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50218F#FFFFFF#000000##FFFFFF
##50218F1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#3F3E57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #50218f;
/* rgb */ color: rgb(80, 33, 143);
/* oklch */ color: oklch(38.3% 0.168 297.1);
Tailwind
colors: {
  custom: {
    50: '#8862b1',
    500: '#50218f',
    950: '#000000',
  },
}
SCSS
$custom: #50218f;
$custom-light: #8862b1;
$custom-dark: #000000;
JSON
{
  "hex": "#50218f",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 265.636,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38305,
    "c": 0.16787,
    "h": 297.1
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#50218F
secondary
#8EBB51
accent
#E642A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #50218F

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

Preview Lab → · Contrast checker → · Palette generator →

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