#50228E#50228E

#50228E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.166 H 297.2°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#50228E
RGBrgb(80, 34, 142)
HSLhsl(266, 61%, 35%)
HSVhsv(266, 76%, 56%)
CMYKcmyk(43.7%, 76.1%, 0%, 44.3%)
CIE-LABlab(26.16, 44.12, -51.46)
CIE-LCHlch(26.16, 67.79, 310.61°)
OKLaboklab(38.33% 0.0758 -0.1472)
OKLCHoklch(38.33% 0.166 297.2)
XYZxyz(8.7615, 4.8024, 26.0513)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50228E #608E22
analogous
#222A8E #50228E #86228E
triadic
#50228E #8E5022 #228E50
tetradic
#50228E #8E222A #608E22 #228E86
square
#50228E #8E222A #608E22 #228E86
split-complementary
#50228E #8E8622 #2A8E22
monochromatic
#180A2B #34165D #50228E #6C2EBF #8C54D6

Accessibility & contrast

On white

10.71
#50228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#50228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50228E
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50228E#FFFFFF#000000##FFFFFF
##50228E1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50228e;
/* rgb */ color: rgb(80, 34, 142);
/* oklch */ color: oklch(38.3% 0.166 297.2);
Tailwind
colors: {
  custom: {
    50: '#8762b0',
    500: '#50228e',
    950: '#000000',
  },
}
SCSS
$custom: #50228e;
$custom-light: #8762b0;
$custom-dark: #000000;
JSON
{
  "hex": "#50228e",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 265.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38331,
    "c": 0.16563,
    "h": 297.2
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#50228E
secondary
#8EBA52
accent
#E443A0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #50228E

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

Preview Lab → · Contrast checker → · Palette generator →

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