#50229F#50229F

#50229F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.185 H 292.7°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#50229F
RGBrgb(80, 34, 159)
HSLhsl(262, 65%, 38%)
HSVhsv(262, 79%, 62%)
CMYKcmyk(49.7%, 78.6%, 0%, 37.6%)
CIE-LABlab(27.72, 48.68, -59.37)
CIE-LCHlch(27.72, 76.77, 309.35°)
OKLaboklab(39.9% 0.0711 -0.1704)
OKLCHoklch(39.9% 0.185 292.7)
XYZxyz(10.1365, 5.3524, 33.2932)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50229F #719F22
analogous
#22329F #50229F #8E229F
triadic
#50229F #9F5022 #229F50
tetradic
#50229F #9F2232 #719F22 #229F8E
square
#50229F #9F2232 #719F22 #229F8E
split-complementary
#50229F #9F8E22 #329F22
monochromatic
#1D0C3A #37176D #50229F #692DD1 #8D5FDD

Accessibility & contrast

On white

10.14
#50229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#50229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50229F
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50229F#FFFFFF#000000##FFFFFF
##50229F1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#364560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #50229f;
/* rgb */ color: rgb(80, 34, 159);
/* oklch */ color: oklch(39.9% 0.185 292.7);
Tailwind
colors: {
  custom: {
    50: '#8a63bc',
    500: '#50229f',
    950: '#000000',
  },
}
SCSS
$custom: #50229f;
$custom-light: #8a63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#50229f",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 262.08,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39895,
    "c": 0.18468,
    "h": 292.7
  },
  "luminance": 0.05353
}

Semantic roles & 50–950 ramp

primary
#50229F
secondary
#9CC15B
accent
#E840AA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #50229F

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

Preview Lab → · Contrast checker → · Palette generator →

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