#50187D#50187D

#50187D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.158 H 304.4°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#50187D
RGBrgb(80, 24, 125)
HSLhsl(273, 68%, 29%)
HSVhsv(273, 81%, 49%)
CMYKcmyk(36%, 80.8%, 0%, 51%)
CIE-LABlab(23.13, 44.20, -45.75)
CIE-LCHlch(23.13, 63.61, 314.02°)
OKLaboklab(35.74% 0.0894 -0.1304)
OKLCHoklch(35.74% 0.158 304.4)
XYZxyz(7.3357, 3.8394, 19.7527)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50187D #457D18
analogous
#1D187D #50187D #7D1878
triadic
#50187D #7D5018 #187D50
tetradic
#50187D #7D1D18 #457D18 #18787D
square
#50187D #7D1D18 #457D18 #18787D
split-complementary
#50187D #787D18 #187D1D
monochromatic
#10051A #2F0E4A #50187D #7122B0 #9137D9

Accessibility & contrast

On white

11.88
#50187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#50187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50187D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50187D#FFFFFF#000000##FFFFFF
##50187D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50187d;
/* rgb */ color: rgb(80, 24, 125);
/* oklch */ color: oklch(35.7% 0.158 304.4);
Tailwind
colors: {
  custom: {
    50: '#865ca3',
    500: '#50187d',
    950: '#000000',
  },
}
SCSS
$custom: #50187d;
$custom-light: #865ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#50187d",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 273.267,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35743,
    "c": 0.15809,
    "h": 304.4
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#50187D
secondary
#72B23F
accent
#EB3D8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50187D

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

Preview Lab → · Contrast checker → · Palette generator →

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