#502B86#502B86

#502B86 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.145 H 298.0°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#502B86
RGBrgb(80, 43, 134)
HSLhsl(264, 51%, 35%)
HSVhsv(264, 68%, 53%)
CMYKcmyk(40.3%, 67.9%, 0%, 47.5%)
CIE-LABlab(27.17, 37.29, -44.85)
CIE-LCHlch(27.17, 58.33, 309.74°)
OKLaboklab(38.84% 0.0679 -0.1279)
OKLCHoklch(38.84% 0.145 298)
XYZxyz(8.4741, 5.1543, 23.0981)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B86 #61862B
analogous
#2B3386 #502B86 #7E2B86
triadic
#502B86 #86502B #2B8650
tetradic
#502B86 #862B33 #61862B #2B867E
square
#502B86 #862B33 #61862B #2B867E
split-complementary
#502B86 #867E2B #33862B
monochromatic
#190D29 #341C58 #502B86 #6C3AB4 #8C60CC

Accessibility & contrast

On white

10.34
#502B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#502B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B86
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B86#FFFFFF#000000##FFFFFF
##502B861.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#434054
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502b86;
/* rgb */ color: rgb(80, 43, 134);
/* oklch */ color: oklch(38.8% 0.145 298.0);
Tailwind
colors: {
  custom: {
    50: '#8667aa',
    500: '#502b86',
    950: '#000000',
  },
}
SCSS
$custom: #502b86;
$custom-light: #8667aa;
$custom-dark: #000000;
JSON
{
  "hex": "#502b86",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 134
  },
  "hsl": {
    "h": 264.396,
    "s": 51.412,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38841,
    "c": 0.14478,
    "h": 298
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#502B86
secondary
#8FB25B
accent
#DB4DA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502B86

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

Preview Lab → · Contrast checker → · Palette generator →

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