#502D79#502D79

#502D79 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.1% C 0.125 H 302.0°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#502D79
RGBrgb(80, 45, 121)
HSLhsl(268, 46%, 33%)
HSVhsv(268, 63%, 47%)
CMYKcmyk(33.9%, 62.8%, 0%, 52.5%)
CIE-LABlab(26.63, 32.58, -37.55)
CIE-LCHlch(26.63, 49.71, 310.94°)
OKLaboklab(38.14% 0.0665 -0.1064)
OKLCHoklch(38.14% 0.125 302)
XYZxyz(7.6970, 4.9627, 18.6378)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D79 #56792D
analogous
#2D3079 #502D79 #762D79
triadic
#502D79 #79502D #2D7950
tetradic
#502D79 #792D30 #56792D #2D7976
square
#502D79 #792D30 #56792D #2D7976
split-complementary
#502D79 #79762D #30792D
monochromatic
#150C20 #331C4C #502D79 #6D3EA6 #8C5DC3

Accessibility & contrast

On white

10.54
#502D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#502D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D79
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D79#FFFFFF#000000##FFFFFF
##502D791.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023E7B
Deuteranopia (green-blind)
#173F77
Tritanopia (blue-blind)
#483D4E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #502d79;
/* rgb */ color: rgb(80, 45, 121);
/* oklch */ color: oklch(38.1% 0.125 302.0);
Tailwind
colors: {
  custom: {
    50: '#8468a0',
    500: '#502d79',
    950: '#000000',
  },
}
SCSS
$custom: #502d79;
$custom-light: #8468a0;
$custom-dark: #000000;
JSON
{
  "hex": "#502d79",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 267.632,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38143,
    "c": 0.12546,
    "h": 302
  },
  "luminance": 0.04963
}

Semantic roles & 50–950 ramp

primary
#502D79
secondary
#84A958
accent
#D55299
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #502D79

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

Preview Lab → · Contrast checker → · Palette generator →

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