#502F84#502F84

#502F84 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.137 H 297.6°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#502F84
RGBrgb(80, 47, 132)
HSLhsl(263, 47%, 35%)
HSVhsv(263, 64%, 52%)
CMYKcmyk(39.4%, 64.4%, 0%, 48.2%)
CIE-LABlab(27.86, 34.46, -42.49)
CIE-LCHlch(27.86, 54.70, 309.04°)
OKLaboklab(39.29% 0.0633 -0.1209)
OKLCHoklch(39.29% 0.137 297.6)
XYZxyz(8.4886, 5.4043, 22.4212)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F84 #63842F
analogous
#2F3984 #502F84 #7A2F84
triadic
#502F84 #84502F #2F8450
tetradic
#502F84 #842F39 #63842F #2F847A
square
#502F84 #842F39 #63842F #2F847A
split-complementary
#502F84 #847A2F #39842F
monochromatic
#190F2A #351F57 #502F84 #6B3FB1 #8C65C8

Accessibility & contrast

On white

10.09
#502F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502F84
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F84#FFFFFF#000000##FFFFFF
##502F841.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004287
Deuteranopia (green-blind)
#044182
Tritanopia (blue-blind)
#444255
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502f84;
/* rgb */ color: rgb(80, 47, 132);
/* oklch */ color: oklch(39.3% 0.137 297.6);
Tailwind
colors: {
  custom: {
    50: '#8569a8',
    500: '#502f84',
    950: '#000000',
  },
}
SCSS
$custom: #502f84;
$custom-light: #8569a8;
$custom-dark: #000000;
JSON
{
  "hex": "#502f84",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 263.294,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39289,
    "c": 0.1365,
    "h": 297.6
  },
  "luminance": 0.05404
}

Semantic roles & 50–950 ramp

primary
#502F84
secondary
#90AF60
accent
#D751A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #502F84

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

Preview Lab → · Contrast checker → · Palette generator →

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