#50318D#50318D

#50318D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.145 H 294.5°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#50318D
RGBrgb(80, 49, 141)
HSLhsl(260, 48%, 37%)
HSVhsv(260, 65%, 55%)
CMYKcmyk(43.3%, 65.2%, 0%, 44.7%)
CIE-LABlab(28.97, 35.86, -46.29)
CIE-LCHlch(28.97, 58.55, 307.77°)
OKLaboklab(40.31% 0.0602 -0.1321)
OKLCHoklch(40.31% 0.145 294.5)
XYZxyz(9.2130, 5.8250, 25.8331)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50318D #6E8D31
analogous
#31408D #50318D #7E318D
triadic
#50318D #8D5031 #318D50
tetradic
#50318D #8D3140 #6E8D31 #318D7E
square
#50318D #8D3140 #6E8D31 #318D7E
split-complementary
#50318D #8D7E31 #408D31
monochromatic
#1C1132 #362160 #50318D #6A41BA #8D6CCC

Accessibility & contrast

On white

9.70
#50318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#50318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50318D
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50318D#FFFFFF#000000##FFFFFF
##50318D1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#40465A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #50318d;
/* rgb */ color: rgb(80, 49, 141);
/* oklch */ color: oklch(40.3% 0.145 294.5);
Tailwind
colors: {
  custom: {
    50: '#866baf',
    500: '#50318d',
    950: '#000000',
  },
}
SCSS
$custom: #50318d;
$custom-light: #866baf;
$custom-dark: #000000;
JSON
{
  "hex": "#50318d",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 260.217,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40308,
    "c": 0.14514,
    "h": 294.5
  },
  "luminance": 0.05825
}

Semantic roles & 50–950 ramp

primary
#50318D
secondary
#9AB466
accent
#D850AA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #50318D

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

Preview Lab → · Contrast checker → · Palette generator →

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