#50318B#50318B

#50318B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.143 H 295.0°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#50318B
RGBrgb(80, 49, 139)
HSLhsl(261, 48%, 37%)
HSVhsv(261, 65%, 55%)
CMYKcmyk(42.4%, 64.7%, 0%, 45.5%)
CIE-LABlab(28.81, 35.28, -45.29)
CIE-LCHlch(28.81, 57.41, 307.92°)
OKLaboklab(40.15% 0.0603 -0.1292)
OKLCHoklch(40.15% 0.143 295)
XYZxyz(9.0655, 5.7660, 25.0564)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50318B #6C8B31
analogous
#313F8B #50318B #7D318B
triadic
#50318B #8B5031 #318B50
tetradic
#50318B #8B313F #6C8B31 #318B7D
square
#50318B #8B313F #6C8B31 #318B7D
split-complementary
#50318B #8B7D31 #3F8B31
monochromatic
#1C1131 #36215E #50318B #6A41B8 #8C6BCB

Accessibility & contrast

On white

9.75
#50318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#50318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50318B
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50318B#FFFFFF#000000##FFFFFF
##50318B1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#414659
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #50318b;
/* rgb */ color: rgb(80, 49, 139);
/* oklch */ color: oklch(40.2% 0.143 295.0);
Tailwind
colors: {
  custom: {
    50: '#866bae',
    500: '#50318b',
    950: '#000000',
  },
}
SCSS
$custom: #50318b;
$custom-light: #866bae;
$custom-dark: #000000;
JSON
{
  "hex": "#50318b",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 260.667,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4015,
    "c": 0.14258,
    "h": 295
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

primary
#50318B
secondary
#98B265
accent
#D750A9
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #50318B

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

Preview Lab → · Contrast checker → · Palette generator →

#50318B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva