#501874#501874

#501874 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.149 H 308.0°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#501874
RGBrgb(80, 24, 116)
HSLhsl(277, 66%, 27%)
HSVhsv(277, 79%, 45%)
CMYKcmyk(31%, 79.3%, 0%, 54.5%)
CIE-LABlab(22.37, 42.03, -41.24)
CIE-LCHlch(22.37, 58.89, 315.55°)
OKLaboklab(34.97% 0.0916 -0.1171)
OKLCHoklch(34.97% 0.149 308)
XYZxyz(6.7866, 3.6198, 16.8608)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501874 #3C7418
analogous
#221874 #501874 #74186A
triadic
#501874 #745018 #187450
tetradic
#501874 #742218 #3C7418 #186A74
square
#501874 #742218 #3C7418 #186A74
split-complementary
#501874 #6A7418 #187422
monochromatic
#110519 #2D0E41 #501874 #7322A7 #9532D5

Accessibility & contrast

On white

12.18
#501874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#501874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501874
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501874#FFFFFF#000000##FFFFFF
##5018741.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#4A2F45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501874;
/* rgb */ color: rgb(80, 24, 116);
/* oklch */ color: oklch(35.0% 0.149 308.0);
Tailwind
colors: {
  custom: {
    50: '#855c9d',
    500: '#501874',
    950: '#000000',
  },
}
SCSS
$custom: #501874;
$custom-light: #855c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#501874",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 276.522,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34972,
    "c": 0.14872,
    "h": 308
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#501874
secondary
#68A93F
accent
#E93F81
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501874

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

Preview Lab → · Contrast checker → · Palette generator →

#501874 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva