#50186D#50186D

#50186D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.141 H 311.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#50186D
RGBrgb(80, 24, 109)
HSLhsl(280, 64%, 26%)
HSVhsv(280, 78%, 43%)
CMYKcmyk(26.6%, 78%, 0%, 57.3%)
CIE-LABlab(21.81, 40.38, -37.63)
CIE-LCHlch(21.81, 55.20, 317.02°)
OKLaboklab(34.4% 0.093 -0.1065)
OKLCHoklch(34.4% 0.141 311.1)
XYZxyz(6.3947, 3.4630, 14.7966)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50186D #356D18
analogous
#25186D #50186D #6D185F
triadic
#50186D #6D5018 #186D50
tetradic
#50186D #6D2518 #356D18 #185F6D
square
#50186D #6D2518 #356D18 #185F6D
split-complementary
#50186D #5F6D18 #186D25
monochromatic
#120619 #2B0D3B #50186D #75239F #9A2ED1

Accessibility & contrast

On white

12.41
#50186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#50186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50186D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50186D#FFFFFF#000000##FFFFFF
##50186D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#08356B
Tritanopia (blue-blind)
#4C2C41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #50186d;
/* rgb */ color: rgb(80, 24, 109);
/* oklch */ color: oklch(34.4% 0.141 311.1);
Tailwind
colors: {
  custom: {
    50: '#855b97',
    500: '#50186d',
    950: '#000000',
  },
}
SCSS
$custom: #50186d;
$custom-light: #855b97;
$custom-dark: #000000;
JSON
{
  "hex": "#50186d",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 279.529,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34399,
    "c": 0.14145,
    "h": 311.1
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#50186D
secondary
#60A33E
accent
#E7417A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #50186D

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

Preview Lab → · Contrast checker → · Palette generator →

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