#50127D#50127D

#50127D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.164 H 305.1°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#50127D
RGBrgb(80, 18, 125)
HSLhsl(275, 75%, 28%)
HSVhsv(275, 86%, 49%)
CMYKcmyk(36%, 85.6%, 0%, 51%)
CIE-LABlab(22.37, 46.43, -47.00)
CIE-LCHlch(22.37, 66.06, 314.65°)
OKLaboklab(35.21% 0.0942 -0.134)
OKLCHoklch(35.21% 0.164 305.1)
XYZxyz(7.2254, 3.6188, 19.7159)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50127D #3F7D12
analogous
#1A127D #50127D #7D1274
triadic
#50127D #7D5012 #127D50
tetradic
#50127D #7D1A12 #3F7D12 #12747D
square
#50127D #7D1A12 #3F7D12 #12747D
split-complementary
#50127D #747D12 #127D1A
monochromatic
#11041B #2E0A48 #50127D #721AB2 #9329E0

Accessibility & contrast

On white

12.18
#50127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#50127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50127D
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50127D#FFFFFF#000000##FFFFFF
##50127D1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#473049
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #50127d;
/* rgb */ color: rgb(80, 18, 125);
/* oklch */ color: oklch(35.2% 0.164 305.1);
Tailwind
colors: {
  custom: {
    50: '#865aa3',
    500: '#50127d',
    950: '#000000',
  },
}
SCSS
$custom: #50127d;
$custom-light: #865aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#50127d",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 274.766,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35211,
    "c": 0.1638,
    "h": 305.1
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#50127D
secondary
#6CB338
accent
#F13685
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50127D

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

Preview Lab → · Contrast checker → · Palette generator →

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