#50157C#50157C

#50157C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.160 H 305.2°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#50157C
RGBrgb(80, 21, 124)
HSLhsl(274, 71%, 28%)
HSVhsv(274, 83%, 49%)
CMYKcmyk(35.5%, 83.1%, 0%, 51.4%)
CIE-LABlab(22.64, 45.13, -45.91)
CIE-LCHlch(22.64, 64.38, 314.51°)
OKLaboklab(35.37% 0.0922 -0.1308)
OKLCHoklch(35.37% 0.16 305.2)
XYZxyz(7.2137, 3.6971, 19.3985)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50157C #417C15
analogous
#1D157C #50157C #7C1574
triadic
#50157C #7C5015 #157C50
tetradic
#50157C #7C1D15 #417C15 #15747C
square
#50157C #7C1D15 #417C15 #15747C
split-complementary
#50157C #747C15 #157C1D
monochromatic
#11041A #2E0C48 #50157C #721EB0 #9230DC

Accessibility & contrast

On white

12.07
#50157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #50157C
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50157C#FFFFFF#000000##FFFFFF
##50157C1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#483149
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #50157c;
/* rgb */ color: rgb(80, 21, 124);
/* oklch */ color: oklch(35.4% 0.160 305.2);
Tailwind
colors: {
  custom: {
    50: '#865ba3',
    500: '#50157c',
    950: '#000000',
  },
}
SCSS
$custom: #50157c;
$custom-light: #865ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#50157c",
  "rgb": {
    "r": 80,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 274.369,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35374,
    "c": 0.16007,
    "h": 305.2
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#50157C
secondary
#6EB13C
accent
#EE3A87
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #50157C

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

Preview Lab → · Contrast checker → · Palette generator →

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