#50287D#50287D

#50287D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.138 H 301.7°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#50287D
RGBrgb(80, 40, 125)
HSLhsl(268, 52%, 32%)
HSVhsv(268, 68%, 49%)
CMYKcmyk(36%, 68%, 0%, 51%)
CIE-LABlab(25.87, 36.49, -41.30)
CIE-LCHlch(25.87, 55.11, 311.47°)
OKLaboklab(37.69% 0.0725 -0.1174)
OKLCHoklch(37.69% 0.138 301.7)
XYZxyz(7.7678, 4.7037, 19.8967)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50287D #557D28
analogous
#282B7D #50287D #7A287D
triadic
#50287D #7D5028 #287D50
tetradic
#50287D #7D282B #557D28 #287D7A
square
#50287D #7D282B #557D28 #287D7A
split-complementary
#50287D #7D7A28 #2B7D28
monochromatic
#150A20 #32194F #50287D #6E37AB #8C56C9

Accessibility & contrast

On white

10.82
#50287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#50287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #50287D
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50287D#FFFFFF#000000##FFFFFF
##50287D1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#033D7B
Tritanopia (blue-blind)
#473B4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #50287d;
/* rgb */ color: rgb(80, 40, 125);
/* oklch */ color: oklch(37.7% 0.138 301.7);
Tailwind
colors: {
  custom: {
    50: '#8565a3',
    500: '#50287d',
    950: '#000000',
  },
}
SCSS
$custom: #50287d;
$custom-light: #8565a3;
$custom-dark: #000000;
JSON
{
  "hex": "#50287d",
  "rgb": {
    "r": 80,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 268.235,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37689,
    "c": 0.13799,
    "h": 301.7
  },
  "luminance": 0.04704
}

Semantic roles & 50–950 ramp

primary
#50287D
secondary
#83AE53
accent
#DB4D98
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #50287D

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

Preview Lab → · Contrast checker → · Palette generator →

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