#502178#502178

#502178 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.142 H 305.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#502178
RGBrgb(80, 33, 120)
HSLhsl(272, 57%, 30%)
HSVhsv(272, 73%, 47%)
CMYKcmyk(33.3%, 72.5%, 0%, 52.9%)
CIE-LABlab(24.16, 38.87, -40.90)
CIE-LCHlch(24.16, 56.42, 313.54°)
OKLaboklab(36.34% 0.0814 -0.1162)
OKLCHoklch(36.34% 0.142 305)
XYZxyz(7.2415, 4.1493, 18.1851)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502178 #497821
analogous
#252178 #502178 #782174
triadic
#502178 #785021 #217850
tetradic
#502178 #782521 #497821 #217478
square
#502178 #782521 #497821 #217478
split-complementary
#502178 #747821 #217825
monochromatic
#100718 #301448 #502178 #702EA8 #8F47CC

Accessibility & contrast

On white

11.48
#502178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#502178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502178
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502178#FFFFFF#000000##FFFFFF
##5021781.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#49354A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #502178;
/* rgb */ color: rgb(80, 33, 120);
/* oklch */ color: oklch(36.3% 0.142 305.0);
Tailwind
colors: {
  custom: {
    50: '#8560a0',
    500: '#502178',
    950: '#000000',
  },
}
SCSS
$custom: #502178;
$custom-light: #8560a0;
$custom-dark: #000000;
JSON
{
  "hex": "#502178",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 272.414,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.36339,
    "c": 0.14187,
    "h": 305
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#502178
secondary
#76AB4A
accent
#E0488E
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #502178

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

Preview Lab → · Contrast checker → · Palette generator →

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