#502E89#502E89

#502E89 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.144 H 296.4°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#502E89
RGBrgb(80, 46, 137)
HSLhsl(262, 50%, 36%)
HSVhsv(262, 66%, 54%)
CMYKcmyk(41.6%, 66.4%, 0%, 46.3%)
CIE-LABlab(28.02, 36.44, -45.34)
CIE-LCHlch(28.02, 58.17, 308.79°)
OKLaboklab(39.53% 0.0641 -0.1293)
OKLCHoklch(39.53% 0.144 296.4)
XYZxyz(8.7994, 5.4654, 24.2534)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E89 #67892E
analogous
#2E3989 #502E89 #7D2E89
triadic
#502E89 #89502E #2E8950
tetradic
#502E89 #892E39 #67892E #2E897D
square
#502E89 #892E39 #67892E #2E897D
split-complementary
#502E89 #897D2E #39892E
monochromatic
#1A0F2D #351F5B #502E89 #6B3DB7 #8C66CC

Accessibility & contrast

On white

10.03
#502E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#502E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E89
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E89#FFFFFF#000000##FFFFFF
##502E891.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#424357
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502e89;
/* rgb */ color: rgb(80, 46, 137);
/* oklch */ color: oklch(39.5% 0.144 296.4);
Tailwind
colors: {
  custom: {
    50: '#8669ac',
    500: '#502e89',
    950: '#000000',
  },
}
SCSS
$custom: #502e89;
$custom-light: #8669ac;
$custom-dark: #000000;
JSON
{
  "hex": "#502e89",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 262.418,
    "s": 49.727,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39528,
    "c": 0.1443,
    "h": 296.4
  },
  "luminance": 0.05466
}

Semantic roles & 50–950 ramp

primary
#502E89
secondary
#94B260
accent
#D94FA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502E89

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

Preview Lab → · Contrast checker → · Palette generator →

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