#501274#501274

#501274 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.155 H 308.7°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#501274
RGBrgb(80, 18, 116)
HSLhsl(278, 73%, 26%)
HSVhsv(278, 84%, 45%)
CMYKcmyk(31%, 84.5%, 0%, 54.5%)
CIE-LABlab(21.58, 44.33, -42.53)
CIE-LCHlch(21.58, 61.44, 316.19°)
OKLaboklab(34.41% 0.0969 -0.1209)
OKLCHoklch(34.41% 0.155 308.7)
XYZxyz(6.6763, 3.3992, 16.8240)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501274 #367412
analogous
#1F1274 #501274 #741267
triadic
#501274 #745012 #127450
tetradic
#501274 #741F12 #367412 #126774
square
#501274 #741F12 #367412 #126774
split-complementary
#501274 #677412 #12741F
monochromatic
#12041A #2B0A3F #501274 #751AA9 #9923DD

Accessibility & contrast

On white

12.50
#501274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#501274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501274
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501274#FFFFFF#000000##FFFFFF
##5012741.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501274;
/* rgb */ color: rgb(80, 18, 116);
/* oklch */ color: oklch(34.4% 0.155 308.7);
Tailwind
colors: {
  custom: {
    50: '#86599d',
    500: '#501274',
    950: '#000000',
  },
}
SCSS
$custom: #501274;
$custom-light: #86599d;
$custom-dark: #000000;
JSON
{
  "hex": "#501274",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 277.959,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34414,
    "c": 0.15496,
    "h": 308.7
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#501274
secondary
#62AB37
accent
#F0387C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #501274

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

Preview Lab → · Contrast checker → · Palette generator →

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