#502C83#502C83

#502C83 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.140 H 298.7°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#502C83
RGBrgb(80, 44, 131)
HSLhsl(265, 50%, 34%)
HSVhsv(265, 66%, 51%)
CMYKcmyk(38.9%, 66.4%, 0%, 48.6%)
CIE-LABlab(27.15, 35.90, -43.01)
CIE-LCHlch(27.15, 56.03, 309.85°)
OKLaboklab(38.75% 0.0671 -0.1225)
OKLCHoklch(38.75% 0.14 298.7)
XYZxyz(8.3047, 5.1454, 22.0240)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C83 #5F832C
analogous
#2C3483 #502C83 #7C2C83
triadic
#502C83 #83502C #2C8350
tetradic
#502C83 #832C34 #5F832C #2C837C
square
#502C83 #832C34 #5F832C #2C837C
split-complementary
#502C83 #837C2C #34832C
monochromatic
#180D27 #341D55 #502C83 #6C3BB1 #8C60CA

Accessibility & contrast

On white

10.35
#502C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#502C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C83
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C83#FFFFFF#000000##FFFFFF
##502C831.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004086
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#444053
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502c83;
/* rgb */ color: rgb(80, 44, 131);
/* oklch */ color: oklch(38.8% 0.140 298.7);
Tailwind
colors: {
  custom: {
    50: '#8567a8',
    500: '#502c83',
    950: '#000000',
  },
}
SCSS
$custom: #502c83;
$custom-light: #8567a8;
$custom-dark: #000000;
JSON
{
  "hex": "#502c83",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 264.828,
    "s": 49.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3875,
    "c": 0.13962,
    "h": 298.7
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#502C83
secondary
#8DB05B
accent
#D94FA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #502C83

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

Preview Lab → · Contrast checker → · Palette generator →

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