#50156E#50156E

#50156E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.146 H 311.0°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#50156E
RGBrgb(80, 21, 110)
HSLhsl(280, 68%, 26%)
HSVhsv(280, 81%, 43%)
CMYKcmyk(27.3%, 80.9%, 0%, 56.9%)
CIE-LABlab(21.46, 41.85, -38.85)
CIE-LCHlch(21.46, 57.10, 317.13°)
OKLaboklab(34.18% 0.0958 -0.1101)
OKLCHoklch(34.18% 0.146 311)
XYZxyz(6.3904, 3.3678, 15.0622)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50156E #336E15
analogous
#23156E #50156E #6E155F
triadic
#50156E #6E5015 #156E50
tetradic
#50156E #6E2315 #336E15 #155F6E
square
#50156E #6E2315 #336E15 #155F6E
split-complementary
#50156E #5F6E15 #156E23
monochromatic
#13051A #2B0B3B #50156E #751FA1 #9B29D5

Accessibility & contrast

On white

12.55
#50156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#50156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50156E
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50156E#FFFFFF#000000##FFFFFF
##50156E1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#01346C
Tritanopia (blue-blind)
#4C2B41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #50156e;
/* rgb */ color: rgb(80, 21, 110);
/* oklch */ color: oklch(34.2% 0.146 311.0);
Tailwind
colors: {
  custom: {
    50: '#855a98',
    500: '#50156e',
    950: '#000000',
  },
}
SCSS
$custom: #50156e;
$custom-light: #855a98;
$custom-dark: #000000;
JSON
{
  "hex": "#50156e",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 279.775,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34177,
    "c": 0.14594,
    "h": 311
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#50156E
secondary
#5EA43A
accent
#EB3D78
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #50156E

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

Preview Lab → · Contrast checker → · Palette generator →

#50156E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva