#501B74#501B74

#501B74 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.145 H 307.6°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#501B74
RGBrgb(80, 27, 116)
HSLhsl(276, 62%, 28%)
HSVhsv(276, 77%, 45%)
CMYKcmyk(31%, 76.7%, 0%, 54.5%)
CIE-LABlab(22.83, 40.73, -40.50)
CIE-LCHlch(22.83, 57.44, 315.16°)
OKLaboklab(35.29% 0.0886 -0.115)
OKLCHoklch(35.29% 0.145 307.6)
XYZxyz(6.8519, 3.7504, 16.8825)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B74 #3F741B
analogous
#231B74 #501B74 #741B6B
triadic
#501B74 #74501B #1B7450
tetradic
#501B74 #74231B #3F741B #1B6B74
square
#501B74 #74231B #3F741B #1B6B74
split-complementary
#501B74 #6B741B #1B7423
monochromatic
#110619 #2E0F42 #501B74 #7227A6 #9339D1

Accessibility & contrast

On white

12.00
#501B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#501B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B74
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B74#FFFFFF#000000##FFFFFF
##501B741.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#4A3046
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #501b74;
/* rgb */ color: rgb(80, 27, 116);
/* oklch */ color: oklch(35.3% 0.145 307.6);
Tailwind
colors: {
  custom: {
    50: '#855d9d',
    500: '#501b74',
    950: '#000000',
  },
}
SCSS
$custom: #501b74;
$custom-light: #855d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#501b74",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 275.73,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35294,
    "c": 0.14518,
    "h": 307.6
  },
  "luminance": 0.0375
}

Semantic roles & 50–950 ramp

primary
#501B74
secondary
#6CA942
accent
#E54284
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501B74

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

Preview Lab → · Contrast checker → · Palette generator →

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