#50197D#50197D

#50197D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.157 H 304.3°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#50197D
RGBrgb(80, 25, 125)
HSLhsl(273, 67%, 29%)
HSVhsv(273, 80%, 49%)
CMYKcmyk(36%, 80%, 0%, 51%)
CIE-LABlab(23.28, 43.79, -45.52)
CIE-LCHlch(23.28, 63.16, 313.90°)
OKLaboklab(35.84% 0.0885 -0.1297)
OKLCHoklch(35.84% 0.157 304.3)
XYZxyz(7.3567, 3.8814, 19.7597)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50197D #467D19
analogous
#1E197D #50197D #7D1978
triadic
#50197D #7D5019 #197D50
tetradic
#50197D #7D1E19 #467D19 #19787D
square
#50197D #7D1E19 #467D19 #19787D
split-complementary
#50197D #787D19 #197D1E
monochromatic
#10051A #2F0F4A #50197D #7123B0 #9039D7

Accessibility & contrast

On white

11.82
#50197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#50197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50197D
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50197D#FFFFFF#000000##FFFFFF
##50197D1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#47334B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #50197d;
/* rgb */ color: rgb(80, 25, 125);
/* oklch */ color: oklch(35.8% 0.157 304.3);
Tailwind
colors: {
  custom: {
    50: '#865da3',
    500: '#50197d',
    950: '#000000',
  },
}
SCSS
$custom: #50197d;
$custom-light: #865da3;
$custom-dark: #000000;
JSON
{
  "hex": "#50197d",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 273,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35843,
    "c": 0.15703,
    "h": 304.3
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#50197D
secondary
#73B140
accent
#EA3E8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50197D

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

Preview Lab → · Contrast checker → · Palette generator →

#50197D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva