#50187F#50187F

#50187F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.160 H 303.7°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#50187F
RGBrgb(80, 24, 127)
HSLhsl(273, 68%, 30%)
HSVhsv(273, 81%, 50%)
CMYKcmyk(37%, 81.1%, 0%, 50.2%)
CIE-LABlab(23.31, 44.69, -46.73)
CIE-LCHlch(23.31, 64.66, 313.72°)
OKLaboklab(35.92% 0.0888 -0.1333)
OKLCHoklch(35.92% 0.16 303.7)
XYZxyz(7.4648, 3.8911, 20.4323)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50187F #477F18
analogous
#1C187F #50187F #7F187B
triadic
#50187F #7F5018 #187F50
tetradic
#50187F #7F1C18 #477F18 #187B7F
square
#50187F #7F1C18 #477F18 #187B7F
split-complementary
#50187F #7B7F18 #187F1C
monochromatic
#10051A #300E4C #50187F #7022B2 #9038D9

Accessibility & contrast

On white

11.81
#50187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#50187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50187F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50187F#FFFFFF#000000##FFFFFF
##50187F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50187f;
/* rgb */ color: rgb(80, 24, 127);
/* oklch */ color: oklch(35.9% 0.160 303.7);
Tailwind
colors: {
  custom: {
    50: '#865ca5',
    500: '#50187f',
    950: '#000000',
  },
}
SCSS
$custom: #50187f;
$custom-light: #865ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#50187f",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 272.621,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3592,
    "c": 0.16017,
    "h": 303.7
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#50187F
secondary
#74B33F
accent
#EB3D8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50187F

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

Preview Lab → · Contrast checker → · Palette generator →

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