#50187A#50187A

#50187A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.155 H 305.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#50187A
RGBrgb(80, 24, 122)
HSLhsl(274, 67%, 29%)
HSVhsv(274, 80%, 48%)
CMYKcmyk(34.4%, 80.3%, 0%, 52.2%)
CIE-LABlab(22.88, 43.48, -44.26)
CIE-LCHlch(22.88, 62.04, 314.49°)
OKLaboklab(35.48% 0.0902 -0.126)
OKLCHoklch(35.48% 0.155 305.6)
XYZxyz(7.1470, 3.7639, 18.7586)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50187A #427A18
analogous
#1F187A #50187A #7A1873
triadic
#50187A #7A5018 #187A50
tetradic
#50187A #7A1F18 #427A18 #18737A
square
#50187A #7A1F18 #427A18 #18737A
split-complementary
#50187A #737A18 #187A1F
monochromatic
#11051A #2E0E47 #50187A #7222AD #9235D7

Accessibility & contrast

On white

11.98
#50187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#50187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50187A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50187A#FFFFFF#000000##FFFFFF
##50187A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#483149
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #50187a;
/* rgb */ color: rgb(80, 24, 122);
/* oklch */ color: oklch(35.5% 0.155 305.6);
Tailwind
colors: {
  custom: {
    50: '#865ca1',
    500: '#50187a',
    950: '#000000',
  },
}
SCSS
$custom: #50187a;
$custom-light: #865ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#50187a",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 274.286,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35482,
    "c": 0.15497,
    "h": 305.6
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#50187A
secondary
#6FAF3F
accent
#EA3E88
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50187A

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

Preview Lab → · Contrast checker → · Palette generator →

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