#50126D#50126D

#50126D is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.8% C 0.148 H 311.8°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#50126D
RGBrgb(80, 18, 109)
HSLhsl(281, 72%, 25%)
HSVhsv(281, 83%, 43%)
CMYKcmyk(26.6%, 83.5%, 0%, 57.3%)
CIE-LABlab(20.99, 42.75, -38.96)
CIE-LCHlch(20.99, 57.84, 317.65°)
OKLaboklab(33.82% 0.0987 -0.1104)
OKLCHoklch(33.82% 0.148 311.8)
XYZxyz(6.2844, 3.2424, 14.7598)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50126D #2F6D12
analogous
#22126D #50126D #6D125D
triadic
#50126D #6D5012 #126D50
tetradic
#50126D #6D2212 #2F6D12 #125D6D
square
#50126D #6D2212 #2F6D12 #125D6D
split-complementary
#50126D #5D6D12 #126D22
monochromatic
#13041A #290938 #50126D #771BA2 #9D23D6

Accessibility & contrast

On white

12.74
#50126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#50126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50126D
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50126D#FFFFFF#000000##FFFFFF
##50126D1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00346B
Tritanopia (blue-blind)
#4C2940
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #50126d;
/* rgb */ color: rgb(80, 18, 109);
/* oklch */ color: oklch(33.8% 0.148 311.8);
Tailwind
colors: {
  custom: {
    50: '#855997',
    500: '#50126d',
    950: '#000000',
  },
}
SCSS
$custom: #50126d;
$custom-light: #855997;
$custom-dark: #000000;
JSON
{
  "hex": "#50126d",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 280.879,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33821,
    "c": 0.14812,
    "h": 311.8
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#50126D
secondary
#5AA437
accent
#EE3973
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #50126D

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

Preview Lab → · Contrast checker → · Palette generator →

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