#501B72#501B72

#501B72 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.143 H 308.5°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#501B72
RGBrgb(80, 27, 114)
HSLhsl(277, 62%, 28%)
HSVhsv(277, 76%, 45%)
CMYKcmyk(29.8%, 76.3%, 0%, 55.3%)
CIE-LABlab(22.67, 40.25, -39.47)
CIE-LCHlch(22.67, 56.37, 315.56°)
OKLaboklab(35.13% 0.089 -0.112)
OKLCHoklch(35.13% 0.143 308.5)
XYZxyz(6.7368, 3.7044, 16.2764)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B72 #3D721B
analogous
#251B72 #501B72 #721B68
triadic
#501B72 #72501B #1B7250
tetradic
#501B72 #72251B #3D721B #1B6872
square
#501B72 #72251B #3D721B #1B6872
split-complementary
#501B72 #68721B #1B7225
monochromatic
#110619 #2D0F41 #501B72 #7327A3 #9438D0

Accessibility & contrast

On white

12.06
#501B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#501B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501B72
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B72#FFFFFF#000000##FFFFFF
##501B721.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#023770
Tritanopia (blue-blind)
#4B2F45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #501b72;
/* rgb */ color: rgb(80, 27, 114);
/* oklch */ color: oklch(35.1% 0.143 308.5);
Tailwind
colors: {
  custom: {
    50: '#855d9b',
    500: '#501b72',
    950: '#000000',
  },
}
SCSS
$custom: #501b72;
$custom-light: #855d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#501b72",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 276.552,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35131,
    "c": 0.14304,
    "h": 308.5
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#501B72
secondary
#69A742
accent
#E54382
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501B72

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

Preview Lab → · Contrast checker → · Palette generator →

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