#50127E#50127E

#50127E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.165 H 304.7°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#50127E
RGBrgb(80, 18, 126)
HSLhsl(274, 75%, 28%)
HSVhsv(274, 86%, 49%)
CMYKcmyk(36.5%, 85.7%, 0%, 50.6%)
CIE-LABlab(22.46, 46.66, -47.48)
CIE-LCHlch(22.46, 66.57, 314.50°)
OKLaboklab(35.3% 0.0939 -0.1354)
OKLCHoklch(35.3% 0.165 304.7)
XYZxyz(7.2896, 3.6445, 20.0540)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50127E #407E12
analogous
#1A127E #50127E #7E1276
triadic
#50127E #7E5012 #127E50
tetradic
#50127E #7E1A12 #407E12 #12767E
square
#50127E #7E1A12 #407E12 #12767E
split-complementary
#50127E #767E12 #127E1A
monochromatic
#11041B #2E0A48 #50127E #721AB4 #932AE1

Accessibility & contrast

On white

12.15
#50127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#50127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50127E
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50127E#FFFFFF#000000##FFFFFF
##50127E1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#47314A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #50127e;
/* rgb */ color: rgb(80, 18, 126);
/* oklch */ color: oklch(35.3% 0.165 304.7);
Tailwind
colors: {
  custom: {
    50: '#865aa4',
    500: '#50127e',
    950: '#000000',
  },
}
SCSS
$custom: #50127e;
$custom-light: #865aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#50127e",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 274.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35302,
    "c": 0.16479,
    "h": 304.7
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#50127E
secondary
#6DB438
accent
#F23686
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50127E

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

Preview Lab → · Contrast checker → · Palette generator →

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