#50317A#50317A

#50317A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.9% C 0.120 H 300.5°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#50317A
RGBrgb(80, 49, 122)
HSLhsl(265, 43%, 34%)
HSVhsv(265, 60%, 48%)
CMYKcmyk(34.4%, 59.8%, 0%, 52.2%)
CIE-LABlab(27.59, 30.48, -36.63)
CIE-LCHlch(27.59, 47.65, 309.76°)
OKLaboklab(38.87% 0.0611 -0.1037)
OKLCHoklch(38.87% 0.12 300.5)
XYZxyz(7.9186, 5.3072, 19.0158)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50317A #5B7A31
analogous
#31367A #50317A #74317A
triadic
#50317A #7A5031 #317A50
tetradic
#50317A #7A3136 #5B7A31 #317A74
square
#50317A #7A3136 #5B7A31 #317A74
split-complementary
#50317A #7A7431 #367A31
monochromatic
#170E23 #331F4E #50317A #6D43A6 #8C64C1

Accessibility & contrast

On white

10.19
#50317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#50317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50317A
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50317A#FFFFFF#000000##FFFFFF
##50317A1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F417C
Deuteranopia (green-blind)
#1C4178
Tritanopia (blue-blind)
#474050
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #50317a;
/* rgb */ color: rgb(80, 49, 122);
/* oklch */ color: oklch(38.9% 0.120 300.5);
Tailwind
colors: {
  custom: {
    50: '#846aa1',
    500: '#50317a',
    950: '#000000',
  },
}
SCSS
$custom: #50317a;
$custom-light: #846aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#50317a",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 265.479,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3887,
    "c": 0.12036,
    "h": 300.5
  },
  "luminance": 0.05307
}

Semantic roles & 50–950 ramp

primary
#50317A
secondary
#89A85E
accent
#D2559D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #50317A

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

Preview Lab → · Contrast checker → · Palette generator →

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