#50127F#50127F

#50127F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.166 H 304.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#50127F
RGBrgb(80, 18, 127)
HSLhsl(274, 75%, 28%)
HSVhsv(274, 86%, 50%)
CMYKcmyk(37%, 85.8%, 0%, 50.2%)
CIE-LABlab(22.55, 46.90, -47.97)
CIE-LCHlch(22.55, 67.08, 314.35°)
OKLaboklab(35.39% 0.0935 -0.1369)
OKLCHoklch(35.39% 0.166 304.4)
XYZxyz(7.3544, 3.6704, 20.3956)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50127F #417F12
analogous
#19127F #50127F #7F1277
triadic
#50127F #7F5012 #127F50
tetradic
#50127F #7F1912 #417F12 #12777F
square
#50127F #7F1912 #417F12 #12777F
split-complementary
#50127F #777F12 #127F19
monochromatic
#11041B #2E0A49 #50127F #721AB5 #922BE1

Accessibility & contrast

On white

12.11
#50127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #50127F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50127F#FFFFFF#000000##FFFFFF
##50127F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50127f;
/* rgb */ color: rgb(80, 18, 127);
/* oklch */ color: oklch(35.4% 0.166 304.4);
Tailwind
colors: {
  custom: {
    50: '#875aa5',
    500: '#50127f',
    950: '#000000',
  },
}
SCSS
$custom: #50127f;
$custom-light: #875aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#50127f",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 274.128,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35393,
    "c": 0.16578,
    "h": 304.4
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#50127F
secondary
#6EB538
accent
#F23687
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50127F

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

Preview Lab → · Contrast checker → · Palette generator →

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