#501B8E#501B8E

#501B8E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.173 H 298.2°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#501B8E
RGBrgb(80, 27, 142)
HSLhsl(268, 68%, 33%)
HSVhsv(268, 81%, 56%)
CMYKcmyk(43.7%, 81%, 0%, 44.3%)
CIE-LABlab(25.08, 47.23, -53.23)
CIE-LCHlch(25.08, 71.16, 311.58°)
OKLaboklab(37.57% 0.0819 -0.1524)
OKLCHoklch(37.57% 0.173 298.2)
XYZxyz(8.5814, 4.4422, 25.9912)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B8E #598E1B
analogous
#1B208E #501B8E #891B8E
triadic
#501B8E #8E501B #1B8E50
tetradic
#501B8E #8E1B20 #598E1B #1B8E89
square
#501B8E #8E1B20 #598E1B #1B8E89
split-complementary
#501B8E #8E891B #208E1B
monochromatic
#160727 #33115B #501B8E #6D25C1 #8C47DC

Accessibility & contrast

On white

11.12
#501B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#501B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B8E
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B8E#FFFFFF#000000##FFFFFF
##501B8E1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#403B55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #501b8e;
/* rgb */ color: rgb(80, 27, 142);
/* oklch */ color: oklch(37.6% 0.173 298.2);
Tailwind
colors: {
  custom: {
    50: '#885fb0',
    500: '#501b8e',
    950: '#000000',
  },
}
SCSS
$custom: #501b8e;
$custom-light: #885fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#501b8e",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 267.652,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37574,
    "c": 0.17299,
    "h": 298.2
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#501B8E
secondary
#87BE47
accent
#EB3D9B
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501B8E

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

Preview Lab → · Contrast checker → · Palette generator →

#501B8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva