#502C82#502C82

#502C82 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.138 H 299.0°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#502C82
RGBrgb(80, 44, 130)
HSLhsl(265, 49%, 34%)
HSVhsv(265, 66%, 51%)
CMYKcmyk(38.5%, 66.2%, 0%, 49%)
CIE-LABlab(27.07, 35.62, -42.51)
CIE-LCHlch(27.07, 55.46, 309.96°)
OKLaboklab(38.67% 0.0672 -0.121)
OKLCHoklch(38.67% 0.138 299)
XYZxyz(8.2372, 5.1184, 21.6687)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C82 #5E822C
analogous
#2C3382 #502C82 #7B2C82
triadic
#502C82 #82502C #2C8250
tetradic
#502C82 #822C33 #5E822C #2C827B
square
#502C82 #822C33 #5E822C #2C827B
split-complementary
#502C82 #827B2C #33822C
monochromatic
#180D27 #341D54 #502C82 #6C3BB0 #8C5FC9

Accessibility & contrast

On white

10.38
#502C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#502C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C82
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C82#FFFFFF#000000##FFFFFF
##502C821.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004085
Deuteranopia (green-blind)
#013F80
Tritanopia (blue-blind)
#453F53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502c82;
/* rgb */ color: rgb(80, 44, 130);
/* oklch */ color: oklch(38.7% 0.138 299.0);
Tailwind
colors: {
  custom: {
    50: '#8567a7',
    500: '#502c82',
    950: '#000000',
  },
}
SCSS
$custom: #502c82;
$custom-light: #8567a7;
$custom-dark: #000000;
JSON
{
  "hex": "#502c82",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 265.116,
    "s": 49.425,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38671,
    "c": 0.13837,
    "h": 299
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#502C82
secondary
#8CAF5B
accent
#D94F9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502C82

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

Preview Lab → · Contrast checker → · Palette generator →

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