#50317C#50317C

#50317C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.0% C 0.123 H 299.8°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#50317C
RGBrgb(80, 49, 124)
HSLhsl(265, 43%, 34%)
HSVhsv(265, 60%, 49%)
CMYKcmyk(35.5%, 60.5%, 0%, 51.4%)
CIE-LABlab(27.73, 31.03, -37.67)
CIE-LCHlch(27.73, 48.81, 309.48°)
OKLaboklab(39.01% 0.0611 -0.1068)
OKLCHoklch(39.01% 0.123 299.8)
XYZxyz(8.0438, 5.3573, 19.6751)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50317C #5D7C31
analogous
#31387C #50317C #76317C
triadic
#50317C #7C5031 #317C50
tetradic
#50317C #7C3138 #5D7C31 #317C76
square
#50317C #7C3138 #5D7C31 #317C76
split-complementary
#50317C #7C7631 #387C31
monochromatic
#170E24 #342050 #50317C #6C42A8 #8C65C2

Accessibility & contrast

On white

10.14
#50317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#50317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50317C
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50317C#FFFFFF#000000##FFFFFF
##50317C1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B417E
Deuteranopia (green-blind)
#19417A
Tritanopia (blue-blind)
#474051
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #50317c;
/* rgb */ color: rgb(80, 49, 124);
/* oklch */ color: oklch(39.0% 0.123 299.8);
Tailwind
colors: {
  custom: {
    50: '#846aa2',
    500: '#50317c',
    950: '#000000',
  },
}
SCSS
$custom: #50317c;
$custom-light: #846aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#50317c",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 264.8,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39014,
    "c": 0.12301,
    "h": 299.8
  },
  "luminance": 0.05357
}

Semantic roles & 50–950 ramp

primary
#50317C
secondary
#8BAA5F
accent
#D3559F
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #50317C

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

Preview Lab → · Contrast checker → · Palette generator →

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