#502E8D#502E8D

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

Color values

HEX#502E8D
RGBrgb(80, 46, 141)
HSLhsl(261, 51%, 37%)
HSVhsv(261, 67%, 55%)
CMYKcmyk(43.3%, 67.4%, 0%, 44.7%)
CIE-LABlab(28.33, 37.58, -47.31)
CIE-LCHlch(28.33, 60.42, 308.46°)
OKLaboklab(39.85% 0.0636 -0.1351)
OKLCHoklch(39.85% 0.149 295.2)
XYZxyz(9.0917, 5.5823, 25.7926)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E8D #6B8D2E
analogous
#2E3C8D #502E8D #802E8D
triadic
#502E8D #8D502E #2E8D50
tetradic
#502E8D #8D2E3C #6B8D2E #2E8D80
square
#502E8D #8D2E3C #6B8D2E #2E8D80
split-complementary
#502E8D #8D802E #3C8D2E
monochromatic
#1C1031 #361F5F #502E8D #6A3DBB #8C68CE

Accessibility & contrast

On white

9.92
#502E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502E8D
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E8D#FFFFFF#000000##FFFFFF
##502E8D1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#404459
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502e8d;
/* rgb */ color: rgb(80, 46, 141);
/* oklch */ color: oklch(39.9% 0.149 295.2);
Tailwind
colors: {
  custom: {
    50: '#8669af',
    500: '#502e8d',
    950: '#000000',
  },
}
SCSS
$custom: #502e8d;
$custom-light: #8669af;
$custom-dark: #000000;
JSON
{
  "hex": "#502e8d",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 261.474,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39851,
    "c": 0.14934,
    "h": 295.2
  },
  "luminance": 0.05583
}

Semantic roles & 50–950 ramp

primary
#502E8D
secondary
#97B562
accent
#DA4EA8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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