#50229E#50229E

#50229E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.184 H 292.9°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#50229E
RGBrgb(80, 34, 158)
HSLhsl(262, 65%, 38%)
HSVhsv(262, 78%, 62%)
CMYKcmyk(49.4%, 78.5%, 0%, 38%)
CIE-LABlab(27.62, 48.41, -58.91)
CIE-LCHlch(27.62, 76.25, 309.41°)
OKLaboklab(39.8% 0.0714 -0.1691)
OKLCHoklch(39.8% 0.184 292.9)
XYZxyz(10.0501, 5.3178, 32.8380)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50229E #709E22
analogous
#22329E #50229E #8E229E
triadic
#50229E #9E5022 #229E50
tetradic
#50229E #9E2232 #709E22 #229E8E
square
#50229E #9E2232 #709E22 #229E8E
split-complementary
#50229E #9E8E22 #329E22
monochromatic
#1D0C39 #36176C #50229E #692DD0 #8D5EDC

Accessibility & contrast

On white

10.18
#50229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#50229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50229E
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50229E#FFFFFF#000000##FFFFFF
##50229E1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#37455F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #50229e;
/* rgb */ color: rgb(80, 34, 158);
/* oklch */ color: oklch(39.8% 0.184 292.9);
Tailwind
colors: {
  custom: {
    50: '#8963bc',
    500: '#50229e',
    950: '#000000',
  },
}
SCSS
$custom: #50229e;
$custom-light: #8963bc;
$custom-dark: #000000;
JSON
{
  "hex": "#50229e",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 262.258,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39801,
    "c": 0.18357,
    "h": 292.9
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#50229E
secondary
#9BC15B
accent
#E840A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #50229E

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

Preview Lab → · Contrast checker → · Palette generator →

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