#502E8F#502E8F

#502E8F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.152 H 294.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#502E8F
RGBrgb(80, 46, 143)
HSLhsl(261, 51%, 37%)
HSVhsv(261, 68%, 56%)
CMYKcmyk(44.1%, 67.8%, 0%, 43.9%)
CIE-LABlab(28.49, 38.15, -48.29)
CIE-LCHlch(28.49, 61.54, 308.31°)
OKLaboklab(40.02% 0.0634 -0.138)
OKLCHoklch(40.02% 0.152 294.7)
XYZxyz(9.2419, 5.6424, 26.5834)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E8F #6D8F2E
analogous
#2E3D8F #502E8F #812E8F
triadic
#502E8F #8F502E #2E8F50
tetradic
#502E8F #8F2E3D #6D8F2E #2E8F81
square
#502E8F #8F2E3D #6D8F2E #2E8F81
split-complementary
#502E8F #8F812E #3D8F2E
monochromatic
#1C1032 #361F61 #502E8F #6A3DBD #8C69CF

Accessibility & contrast

On white

9.87
#502E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#502E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E8F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E8F#FFFFFF#000000##FFFFFF
##502E8F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#3F455A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502e8f;
/* rgb */ color: rgb(80, 46, 143);
/* oklch */ color: oklch(40.0% 0.152 294.7);
Tailwind
colors: {
  custom: {
    50: '#8769b1',
    500: '#502e8f',
    950: '#000000',
  },
}
SCSS
$custom: #502e8f;
$custom-light: #8769b1;
$custom-dark: #000000;
JSON
{
  "hex": "#502e8f",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 261.031,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40015,
    "c": 0.15184,
    "h": 294.7
  },
  "luminance": 0.05643
}

Semantic roles & 50–950 ramp

primary
#502E8F
secondary
#99B663
accent
#DB4DA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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