#502D89#502D89

#502D89 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.146 H 296.6°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#502D89
RGBrgb(80, 45, 137)
HSLhsl(263, 51%, 36%)
HSVhsv(263, 67%, 54%)
CMYKcmyk(41.6%, 67.2%, 0%, 46.3%)
CIE-LABlab(27.81, 37.01, -45.68)
CIE-LCHlch(27.81, 58.79, 309.02°)
OKLaboklab(39.38% 0.0652 -0.1303)
OKLCHoklch(39.38% 0.146 296.6)
XYZxyz(8.7608, 5.3882, 24.2405)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D89 #66892D
analogous
#2D3889 #502D89 #7E2D89
triadic
#502D89 #89502D #2D8950
tetradic
#502D89 #892D38 #66892D #2D897E
square
#502D89 #892D38 #66892D #2D897E
split-complementary
#502D89 #897E2D #38892D
monochromatic
#1A0F2D #351E5B #502D89 #6B3CB7 #8C64CC

Accessibility & contrast

On white

10.11
#502D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#502D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D89
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D89#FFFFFF#000000##FFFFFF
##502D891.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#424257
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502d89;
/* rgb */ color: rgb(80, 45, 137);
/* oklch */ color: oklch(39.4% 0.146 296.6);
Tailwind
colors: {
  custom: {
    50: '#8668ac',
    500: '#502d89',
    950: '#000000',
  },
}
SCSS
$custom: #502d89;
$custom-light: #8668ac;
$custom-dark: #000000;
JSON
{
  "hex": "#502d89",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 262.826,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39378,
    "c": 0.14571,
    "h": 296.6
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#502D89
secondary
#93B35F
accent
#DA4EA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502D89

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

Preview Lab → · Contrast checker → · Palette generator →

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