#50167F#50167F

#50167F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.162 H 303.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#50167F
RGBrgb(80, 22, 127)
HSLhsl(273, 70%, 29%)
HSVhsv(273, 83%, 50%)
CMYKcmyk(37%, 82.7%, 0%, 50.2%)
CIE-LABlab(23.04, 45.47, -47.17)
CIE-LCHlch(23.04, 65.52, 313.95°)
OKLaboklab(35.73% 0.0905 -0.1345)
OKLCHoklch(35.73% 0.162 303.9)
XYZxyz(7.4250, 3.8116, 20.4191)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50167F #457F16
analogous
#1C167F #50167F #7F167A
triadic
#50167F #7F5016 #167F50
tetradic
#50167F #7F1C16 #457F16 #167A7F
square
#50167F #7F1C16 #457F16 #167A7F
split-complementary
#50167F #7A7F16 #167F1C
monochromatic
#10051A #2F0D4B #50167F #711FB3 #9134DC

Accessibility & contrast

On white

11.92
#50167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#50167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50167F
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50167F#FFFFFF#000000##FFFFFF
##50167F1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50167f;
/* rgb */ color: rgb(80, 22, 127);
/* oklch */ color: oklch(35.7% 0.162 303.9);
Tailwind
colors: {
  custom: {
    50: '#865ba5',
    500: '#50167f',
    950: '#000000',
  },
}
SCSS
$custom: #50167f;
$custom-light: #865ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#50167f",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 273.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35732,
    "c": 0.16216,
    "h": 303.9
  },
  "luminance": 0.03812
}

Semantic roles & 50–950 ramp

primary
#50167F
secondary
#72B43D
accent
#ED3B8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50167F

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

Preview Lab → · Contrast checker → · Palette generator →

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