#502E8B#502E8B

#502E8B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.147 H 295.8°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#502E8B
RGBrgb(80, 46, 139)
HSLhsl(262, 50%, 36%)
HSVhsv(262, 67%, 55%)
CMYKcmyk(42.4%, 66.9%, 0%, 45.5%)
CIE-LABlab(28.18, 37.01, -46.33)
CIE-LCHlch(28.18, 59.29, 308.62°)
OKLaboklab(39.69% 0.0639 -0.1322)
OKLCHoklch(39.69% 0.147 295.8)
XYZxyz(8.9442, 5.5234, 25.0160)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E8B #698B2E
analogous
#2E3B8B #502E8B #7F2E8B
triadic
#502E8B #8B502E #2E8B50
tetradic
#502E8B #8B2E3B #698B2E #2E8B7F
square
#502E8B #8B2E3B #698B2E #2E8B7F
split-complementary
#502E8B #8B7F2E #3B8B2E
monochromatic
#1B102F #361F5D #502E8B #6A3DB9 #8C67CD

Accessibility & contrast

On white

9.98
#502E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#502E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E8B
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E8B#FFFFFF#000000##FFFFFF
##502E8B1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#414458
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502e8b;
/* rgb */ color: rgb(80, 46, 139);
/* oklch */ color: oklch(39.7% 0.147 295.8);
Tailwind
colors: {
  custom: {
    50: '#8669ae',
    500: '#502e8b',
    950: '#000000',
  },
}
SCSS
$custom: #502e8b;
$custom-light: #8669ae;
$custom-dark: #000000;
JSON
{
  "hex": "#502e8b",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 261.935,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39688,
    "c": 0.14682,
    "h": 295.8
  },
  "luminance": 0.05524
}

Semantic roles & 50–950 ramp

primary
#502E8B
secondary
#95B361
accent
#DA4EA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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