#501774#501774

#501774 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.150 H 308.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#501774
RGBrgb(80, 23, 116)
HSLhsl(277, 67%, 27%)
HSVhsv(277, 80%, 45%)
CMYKcmyk(31%, 80.2%, 0%, 54.5%)
CIE-LABlab(22.23, 42.45, -41.47)
CIE-LCHlch(22.23, 59.34, 315.66°)
OKLaboklab(34.87% 0.0926 -0.1178)
OKLCHoklch(34.87% 0.15 308.2)
XYZxyz(6.7664, 3.5793, 16.8540)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501774 #3B7417
analogous
#221774 #501774 #74176A
triadic
#501774 #745017 #177450
tetradic
#501774 #742217 #3B7417 #176A74
square
#501774 #742217 #3B7417 #176A74
split-complementary
#501774 #6A7417 #177422
monochromatic
#12051A #2D0D41 #501774 #7321A7 #9530D6

Accessibility & contrast

On white

12.24
#501774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501774
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501774#FFFFFF#000000##FFFFFF
##5017741.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501774;
/* rgb */ color: rgb(80, 23, 116);
/* oklch */ color: oklch(34.9% 0.150 308.2);
Tailwind
colors: {
  custom: {
    50: '#855b9d',
    500: '#501774',
    950: '#000000',
  },
}
SCSS
$custom: #501774;
$custom-light: #855b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#501774",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 276.774,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34871,
    "c": 0.14984,
    "h": 308.2
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#501774
secondary
#67A93D
accent
#EA3E81
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501774

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

Preview Lab → · Contrast checker → · Palette generator →

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