#501B8F#501B8F

#501B8F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.174 H 297.9°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#501B8F
RGBrgb(80, 27, 143)
HSLhsl(267, 68%, 33%)
HSVhsv(267, 81%, 56%)
CMYKcmyk(44.1%, 81.1%, 0%, 43.9%)
CIE-LABlab(25.18, 47.48, -53.70)
CIE-LCHlch(25.18, 71.68, 311.48°)
OKLaboklab(37.67% 0.0816 -0.1538)
OKLCHoklch(37.67% 0.174 297.9)
XYZxyz(8.6568, 4.4724, 26.3884)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501B8F #5A8F1B
analogous
#1B208F #501B8F #8A1B8F
triadic
#501B8F #8F501B #1B8F50
tetradic
#501B8F #8F1B20 #5A8F1B #1B8F8A
square
#501B8F #8F1B20 #5A8F1B #1B8F8A
split-complementary
#501B8F #8F8A1B #208F1B
monochromatic
#160828 #33115C #501B8F #6D25C2 #8C48DC

Accessibility & contrast

On white

11.08
#501B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501B8F
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501B8F#FFFFFF#000000##FFFFFF
##501B8F1.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#403B55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501b8f;
/* rgb */ color: rgb(80, 27, 143);
/* oklch */ color: oklch(37.7% 0.174 297.9);
Tailwind
colors: {
  custom: {
    50: '#885fb1',
    500: '#501b8f',
    950: '#000000',
  },
}
SCSS
$custom: #501b8f;
$custom-light: #885fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#501b8f",
  "rgb": {
    "r": 80,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 267.414,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37667,
    "c": 0.17406,
    "h": 297.9
  },
  "luminance": 0.04473
}

Semantic roles & 50–950 ramp

primary
#501B8F
secondary
#88BE48
accent
#EB3D9B
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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