#50126E#50126E

#50126E is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.149 H 311.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#50126E
RGBrgb(80, 18, 110)
HSLhsl(280, 72%, 25%)
HSVhsv(280, 84%, 43%)
CMYKcmyk(27.3%, 83.6%, 0%, 56.9%)
CIE-LABlab(21.07, 42.97, -39.48)
CIE-LCHlch(21.07, 58.35, 317.42°)
OKLaboklab(33.9% 0.0985 -0.1119)
OKLCHoklch(33.9% 0.149 311.4)
XYZxyz(6.3385, 3.2640, 15.0449)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50126E #306E12
analogous
#22126E #50126E #6E125E
triadic
#50126E #6E5012 #126E50
tetradic
#50126E #6E2212 #306E12 #125E6E
square
#50126E #6E2212 #306E12 #125E6E
split-complementary
#50126E #5E6E12 #126E22
monochromatic
#13041A #2A0939 #50126E #761BA3 #9D23D7

Accessibility & contrast

On white

12.71
#50126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #50126E
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50126E#FFFFFF#000000##FFFFFF
##50126E1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#4C2940
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #50126e;
/* rgb */ color: rgb(80, 18, 110);
/* oklch */ color: oklch(33.9% 0.149 311.4);
Tailwind
colors: {
  custom: {
    50: '#855998',
    500: '#50126e',
    950: '#000000',
  },
}
SCSS
$custom: #50126e;
$custom-light: #855998;
$custom-dark: #000000;
JSON
{
  "hex": "#50126e",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 280.435,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33904,
    "c": 0.14909,
    "h": 311.4
  },
  "luminance": 0.03264
}

Semantic roles & 50–950 ramp

primary
#50126E
secondary
#5BA537
accent
#EF3974
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #50126E

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

Preview Lab → · Contrast checker → · Palette generator →

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