#50197F#50197F

#50197F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.159 H 303.6°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#50197F
RGBrgb(80, 25, 127)
HSLhsl(272, 67%, 30%)
HSVhsv(272, 80%, 50%)
CMYKcmyk(37%, 80.3%, 0%, 50.2%)
CIE-LABlab(23.45, 44.29, -46.50)
CIE-LCHlch(23.45, 64.22, 313.60°)
OKLaboklab(36.02% 0.088 -0.1326)
OKLCHoklch(36.02% 0.159 303.6)
XYZxyz(7.4858, 3.9330, 20.4393)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50197F #487F19
analogous
#1D197F #50197F #7F197B
triadic
#50197F #7F5019 #197F50
tetradic
#50197F #7F1D19 #487F19 #197B7F
square
#50197F #7F1D19 #487F19 #197B7F
split-complementary
#50197F #7B7F19 #197F1D
monochromatic
#10051A #300F4C #50197F #7023B2 #8F3AD8

Accessibility & contrast

On white

11.75
#50197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#50197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50197F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50197F#FFFFFF#000000##FFFFFF
##50197F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#46344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #50197f;
/* rgb */ color: rgb(80, 25, 127);
/* oklch */ color: oklch(36.0% 0.159 303.6);
Tailwind
colors: {
  custom: {
    50: '#865da5',
    500: '#50197f',
    950: '#000000',
  },
}
SCSS
$custom: #50197f;
$custom-light: #865da5;
$custom-dark: #000000;
JSON
{
  "hex": "#50197f",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 272.353,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36018,
    "c": 0.15914,
    "h": 303.6
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#50197F
secondary
#75B341
accent
#EA3E8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50197F

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

Preview Lab → · Contrast checker → · Palette generator →

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