#502C78#502C78

#502C78 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.9% C 0.126 H 302.6°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#502C78
RGBrgb(80, 44, 120)
HSLhsl(268, 46%, 32%)
HSVhsv(268, 63%, 47%)
CMYKcmyk(33.3%, 63.3%, 0%, 52.9%)
CIE-LABlab(26.34, 32.89, -37.38)
CIE-LCHlch(26.34, 49.79, 311.34°)
OKLaboklab(37.91% 0.0678 -0.1059)
OKLCHoklch(37.91% 0.126 302.6)
XYZxyz(7.5983, 4.8629, 18.3040)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C78 #54782C
analogous
#2C2E78 #502C78 #762C78
triadic
#502C78 #78502C #2C7850
tetradic
#502C78 #782C2E #54782C #2C7876
square
#502C78 #782C2E #54782C #2C7876
split-complementary
#502C78 #78762C #2E782C
monochromatic
#140B1E #321C4B #502C78 #6E3CA5 #8C5BC3

Accessibility & contrast

On white

10.65
#502C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#502C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C78
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C78#FFFFFF#000000##FFFFFF
##502C781.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013E7A
Deuteranopia (green-blind)
#173E76
Tritanopia (blue-blind)
#483C4D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #502c78;
/* rgb */ color: rgb(80, 44, 120);
/* oklch */ color: oklch(37.9% 0.126 302.6);
Tailwind
colors: {
  custom: {
    50: '#84679f',
    500: '#502c78',
    950: '#000000',
  },
}
SCSS
$custom: #502c78;
$custom-light: #84679f;
$custom-dark: #000000;
JSON
{
  "hex": "#502c78",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 268.421,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37911,
    "c": 0.12576,
    "h": 302.6
  },
  "luminance": 0.04863
}

Semantic roles & 50–950 ramp

primary
#502C78
secondary
#82A957
accent
#D65297
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #502C78

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

Preview Lab → · Contrast checker → · Palette generator →

#502C78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva