#501174#501174

#501174 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.156 H 308.8°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#501174
RGBrgb(80, 17, 116)
HSLhsl(278, 74%, 26%)
HSVhsv(278, 85%, 45%)
CMYKcmyk(31%, 85.3%, 0%, 54.5%)
CIE-LABlab(21.46, 44.68, -42.73)
CIE-LCHlch(21.46, 61.82, 316.28°)
OKLaboklab(34.33% 0.0977 -0.1214)
OKLCHoklch(34.33% 0.156 308.8)
XYZxyz(6.6604, 3.3674, 16.8187)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501174 #357411
analogous
#1E1174 #501174 #741166
triadic
#501174 #745011 #117450
tetradic
#501174 #741E11 #357411 #116674
square
#501174 #741E11 #357411 #116674
split-complementary
#501174 #667411 #11741E
monochromatic
#12041B #2B093F #501174 #7519A9 #9A21DE

Accessibility & contrast

On white

12.55
#501174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#501174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501174
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501174#FFFFFF#000000##FFFFFF
##5011741.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#4A2C44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501174;
/* rgb */ color: rgb(80, 17, 116);
/* oklch */ color: oklch(34.3% 0.156 308.8);
Tailwind
colors: {
  custom: {
    50: '#86599d',
    500: '#501174',
    950: '#000000',
  },
}
SCSS
$custom: #501174;
$custom-light: #86599d;
$custom-dark: #000000;
JSON
{
  "hex": "#501174",
  "rgb": {
    "r": 80,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 278.182,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34333,
    "c": 0.15588,
    "h": 308.8
  },
  "luminance": 0.03367
}

Semantic roles & 50–950 ramp

primary
#501174
secondary
#60AB36
accent
#F1377A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #501174

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

Preview Lab → · Contrast checker → · Palette generator →

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