#502D83#502D83

#502D83 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.138 H 298.5°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#502D83
RGBrgb(80, 45, 131)
HSLhsl(264, 49%, 35%)
HSVhsv(264, 66%, 51%)
CMYKcmyk(38.9%, 65.6%, 0%, 48.6%)
CIE-LABlab(27.35, 35.33, -42.67)
CIE-LCHlch(27.35, 55.40, 309.62°)
OKLaboklab(38.9% 0.0659 -0.1215)
OKLCHoklch(38.9% 0.138 298.5)
XYZxyz(8.3424, 5.2208, 22.0365)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D83 #60832D
analogous
#2D3583 #502D83 #7B2D83
triadic
#502D83 #83502D #2D8350
tetradic
#502D83 #832D35 #60832D #2D837B
square
#502D83 #832D35 #60832D #2D837B
split-complementary
#502D83 #837B2D #35832D
monochromatic
#180E28 #341D55 #502D83 #6C3DB1 #8C62C9

Accessibility & contrast

On white

10.27
#502D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#502D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D83
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D83#FFFFFF#000000##FFFFFF
##502D831.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#014081
Tritanopia (blue-blind)
#444053
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502d83;
/* rgb */ color: rgb(80, 45, 131);
/* oklch */ color: oklch(38.9% 0.138 298.5);
Tailwind
colors: {
  custom: {
    50: '#8568a8',
    500: '#502d83',
    950: '#000000',
  },
}
SCSS
$custom: #502d83;
$custom-light: #8568a8;
$custom-dark: #000000;
JSON
{
  "hex": "#502d83",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 131
  },
  "hsl": {
    "h": 264.419,
    "s": 48.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38901,
    "c": 0.13817,
    "h": 298.5
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#502D83
secondary
#8EAF5C
accent
#D84FA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #502D83

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

Preview Lab → · Contrast checker → · Palette generator →

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