#50127A#50127A

#50127A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.161 H 306.3°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#50127A
RGBrgb(80, 18, 122)
HSLhsl(276, 74%, 27%)
HSVhsv(276, 85%, 48%)
CMYKcmyk(34.4%, 85.2%, 0%, 52.2%)
CIE-LABlab(22.10, 45.72, -45.52)
CIE-LCHlch(22.10, 64.52, 315.13°)
OKLaboklab(34.94% 0.0952 -0.1297)
OKLCHoklch(34.94% 0.161 306.3)
XYZxyz(7.0366, 3.5433, 18.7218)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50127A #3C7A12
analogous
#1C127A #50127A #7A1270
triadic
#50127A #7A5012 #127A50
tetradic
#50127A #7A1C12 #3C7A12 #12707A
square
#50127A #7A1C12 #3C7A12 #12707A
split-complementary
#50127A #707A12 #127A1C
monochromatic
#11041B #2D0A45 #50127A #731AAF #9527DF

Accessibility & contrast

On white

12.29
#50127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#50127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50127A
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50127A#FFFFFF#000000##FFFFFF
##50127A1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#482F47
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #50127a;
/* rgb */ color: rgb(80, 18, 122);
/* oklch */ color: oklch(34.9% 0.161 306.3);
Tailwind
colors: {
  custom: {
    50: '#8659a1',
    500: '#50127a',
    950: '#000000',
  },
}
SCSS
$custom: #50127a;
$custom-light: #8659a1;
$custom-dark: #000000;
JSON
{
  "hex": "#50127a",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 275.769,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34942,
    "c": 0.16085,
    "h": 306.3
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#50127A
secondary
#68B038
accent
#F13782
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50127A

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

Preview Lab → · Contrast checker → · Palette generator →

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