#502D7E#502D7E

#502D7E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.132 H 300.2°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#502D7E
RGBrgb(80, 45, 126)
HSLhsl(266, 47%, 34%)
HSVhsv(266, 64%, 49%)
CMYKcmyk(36.5%, 64.3%, 0%, 50.6%)
CIE-LABlab(26.99, 33.95, -40.13)
CIE-LCHlch(26.99, 52.56, 310.23°)
OKLaboklab(38.52% 0.0662 -0.114)
OKLCHoklch(38.52% 0.132 300.2)
XYZxyz(8.0116, 5.0885, 20.2947)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D7E #5B7E2D
analogous
#2D327E #502D7E #782D7E
triadic
#502D7E #7E502D #2D7E50
tetradic
#502D7E #7E2D32 #5B7E2D #2D7E78
square
#502D7E #7E2D32 #5B7E2D #2D7E78
split-complementary
#502D7E #7E782D #327E2D
monochromatic
#170D24 #331D51 #502D7E #6D3DAB #8C5FC6

Accessibility & contrast

On white

10.41
#502D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502D7E
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D7E#FFFFFF#000000##FFFFFF
##502D7E1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#0E3F7C
Tritanopia (blue-blind)
#463E51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502d7e;
/* rgb */ color: rgb(80, 45, 126);
/* oklch */ color: oklch(38.5% 0.132 300.2);
Tailwind
colors: {
  custom: {
    50: '#8568a4',
    500: '#502d7e',
    950: '#000000',
  },
}
SCSS
$custom: #502d7e;
$custom-light: #8568a4;
$custom-dark: #000000;
JSON
{
  "hex": "#502d7e",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 265.926,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38516,
    "c": 0.13183,
    "h": 300.2
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#502D7E
secondary
#89AC5A
accent
#D7519D
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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