#502E88#502E88

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

Color values

HEX#502E88
RGBrgb(80, 46, 136)
HSLhsl(263, 49%, 36%)
HSVhsv(263, 66%, 53%)
CMYKcmyk(41.2%, 66.2%, 0%, 46.7%)
CIE-LABlab(27.94, 36.16, -44.84)
CIE-LCHlch(27.94, 57.60, 308.88°)
OKLaboklab(39.45% 0.0642 -0.1278)
OKLCHoklch(39.45% 0.143 296.7)
XYZxyz(8.7280, 5.4369, 23.8774)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E88 #66882E
analogous
#2E3988 #502E88 #7D2E88
triadic
#502E88 #88502E #2E8850
tetradic
#502E88 #882E39 #66882E #2E887D
square
#502E88 #882E39 #66882E #2E887D
split-complementary
#502E88 #887D2E #39882E
monochromatic
#1A0F2D #351F5A #502E88 #6B3DB6 #8C65CB

Accessibility & contrast

On white

10.06
#502E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502E88
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E88#FFFFFF#000000##FFFFFF
##502E881.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#424356
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502e88;
/* rgb */ color: rgb(80, 46, 136);
/* oklch */ color: oklch(39.4% 0.143 296.7);
Tailwind
colors: {
  custom: {
    50: '#8669ab',
    500: '#502e88',
    950: '#000000',
  },
}
SCSS
$custom: #502e88;
$custom-light: #8669ab;
$custom-dark: #000000;
JSON
{
  "hex": "#502e88",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 262.667,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39448,
    "c": 0.14305,
    "h": 296.7
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502E88

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

Preview Lab → · Contrast checker → · Palette generator →

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