#502E8E#502E8E

#502E8E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.151 H 294.9°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#502E8E
RGBrgb(80, 46, 142)
HSLhsl(261, 51%, 37%)
HSVhsv(261, 68%, 56%)
CMYKcmyk(43.7%, 67.6%, 0%, 44.3%)
CIE-LABlab(28.41, 37.86, -47.80)
CIE-LCHlch(28.41, 60.98, 308.38°)
OKLaboklab(39.93% 0.0635 -0.1365)
OKLCHoklch(39.93% 0.151 294.9)
XYZxyz(9.1664, 5.6122, 26.1863)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E8E #6C8E2E
analogous
#2E3C8E #502E8E #802E8E
triadic
#502E8E #8E502E #2E8E50
tetradic
#502E8E #8E2E3C #6C8E2E #2E8E80
square
#502E8E #8E2E3C #6C8E2E #2E8E80
split-complementary
#502E8E #8E802E #3C8E2E
monochromatic
#1C1032 #361F60 #502E8E #6A3DBC #8C68CE

Accessibility & contrast

On white

9.89
#502E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#502E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E8E
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E8E#FFFFFF#000000##FFFFFF
##502E8E1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#3F455A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502e8e;
/* rgb */ color: rgb(80, 46, 142);
/* oklch */ color: oklch(39.9% 0.151 294.9);
Tailwind
colors: {
  custom: {
    50: '#8669b0',
    500: '#502e8e',
    950: '#000000',
  },
}
SCSS
$custom: #502e8e;
$custom-light: #8669b0;
$custom-dark: #000000;
JSON
{
  "hex": "#502e8e",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 261.25,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39932,
    "c": 0.15058,
    "h": 294.9
  },
  "luminance": 0.05612
}

Semantic roles & 50–950 ramp

primary
#502E8E
secondary
#98B563
accent
#DB4DA9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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