#502E7D#502E7D

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

Color values

HEX#502E7D
RGBrgb(80, 46, 125)
HSLhsl(266, 46%, 34%)
HSVhsv(266, 63%, 49%)
CMYKcmyk(36%, 63.2%, 0%, 51%)
CIE-LABlab(27.13, 33.09, -39.27)
CIE-LCHlch(27.13, 51.35, 310.12°)
OKLaboklab(38.6% 0.065 -0.1115)
OKLCHoklch(38.6% 0.129 300.2)
XYZxyz(7.9860, 5.1401, 19.9695)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E7D #5B7D2E
analogous
#2E337D #502E7D #772E7D
triadic
#502E7D #7D502E #2E7D50
tetradic
#502E7D #7D2E33 #5B7D2E #2E7D77
square
#502E7D #7D2E33 #5B7D2E #2E7D77
split-complementary
#502E7D #7D772E #337D2E
monochromatic
#170D24 #331E50 #502E7D #6D3EAA #8C61C5

Accessibility & contrast

On white

10.36
#502E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502E7D
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E7D#FFFFFF#000000##FFFFFF
##502E7D1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#12407B
Tritanopia (blue-blind)
#463F51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502e7d;
/* rgb */ color: rgb(80, 46, 125);
/* oklch */ color: oklch(38.6% 0.129 300.2);
Tailwind
colors: {
  custom: {
    50: '#8568a3',
    500: '#502e7d',
    950: '#000000',
  },
}
SCSS
$custom: #502e7d;
$custom-light: #8568a3;
$custom-dark: #000000;
JSON
{
  "hex": "#502e7d",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 265.823,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38599,
    "c": 0.12902,
    "h": 300.2
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

primary
#502E7D
secondary
#89AB5B
accent
#D6529D
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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