#502F86#502F86

#502F86 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.4% C 0.139 H 297.0°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#502F86
RGBrgb(80, 47, 134)
HSLhsl(263, 48%, 35%)
HSVhsv(263, 65%, 53%)
CMYKcmyk(40.3%, 64.9%, 0%, 47.5%)
CIE-LABlab(28.01, 35.02, -43.50)
CIE-LCHlch(28.01, 55.84, 308.84°)
OKLaboklab(39.44% 0.0632 -0.1239)
OKLCHoklch(39.44% 0.139 297)
XYZxyz(8.6268, 5.4596, 23.1489)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F86 #65862F
analogous
#2F3986 #502F86 #7B2F86
triadic
#502F86 #86502F #2F8650
tetradic
#502F86 #862F39 #65862F #2F867B
square
#502F86 #862F39 #65862F #2F867B
split-complementary
#502F86 #867B2F #39862F
monochromatic
#1A0F2B #351F59 #502F86 #6B3FB3 #8C66C9

Accessibility & contrast

On white

10.04
#502F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502F86
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F86#FFFFFF#000000##FFFFFF
##502F861.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#434356
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502f86;
/* rgb */ color: rgb(80, 47, 134);
/* oklch */ color: oklch(39.4% 0.139 297.0);
Tailwind
colors: {
  custom: {
    50: '#8569aa',
    500: '#502f86',
    950: '#000000',
  },
}
SCSS
$custom: #502f86;
$custom-light: #8569aa;
$custom-dark: #000000;
JSON
{
  "hex": "#502f86",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 262.759,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39444,
    "c": 0.13906,
    "h": 297
  },
  "luminance": 0.0546
}

Semantic roles & 50–950 ramp

primary
#502F86
secondary
#92B060
accent
#D850A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #502F86

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

Preview Lab → · Contrast checker → · Palette generator →

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