#50157D#50157D

#50157D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.161 H 304.8°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#50157D
RGBrgb(80, 21, 125)
HSLhsl(274, 71%, 29%)
HSVhsv(274, 83%, 49%)
CMYKcmyk(36%, 83.2%, 0%, 51%)
CIE-LABlab(22.73, 45.37, -46.40)
CIE-LCHlch(22.73, 64.89, 314.35°)
OKLaboklab(35.46% 0.0919 -0.1323)
OKLCHoklch(35.46% 0.161 304.8)
XYZxyz(7.2773, 3.7225, 19.7332)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50157D #427D15
analogous
#1C157D #50157D #7D1576
triadic
#50157D #7D5015 #157D50
tetradic
#50157D #7D1C15 #427D15 #15767D
square
#50157D #7D1C15 #427D15 #15767D
split-complementary
#50157D #767D15 #157D1C
monochromatic
#11041A #2E0C49 #50157D #721EB1 #9230DC

Accessibility & contrast

On white

12.04
#50157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#50157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50157D
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50157D#FFFFFF#000000##FFFFFF
##50157D1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #50157d;
/* rgb */ color: rgb(80, 21, 125);
/* oklch */ color: oklch(35.5% 0.161 304.8);
Tailwind
colors: {
  custom: {
    50: '#865ba3',
    500: '#50157d',
    950: '#000000',
  },
}
SCSS
$custom: #50157d;
$custom-light: #865ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#50157d",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 274.038,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35463,
    "c": 0.16109,
    "h": 304.8
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#50157D
secondary
#6FB23C
accent
#EE3A88
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50157D

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

Preview Lab → · Contrast checker → · Palette generator →

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