#502B87#502B87

#502B87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.146 H 297.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#502B87
RGBrgb(80, 43, 135)
HSLhsl(264, 52%, 35%)
HSVhsv(264, 68%, 53%)
CMYKcmyk(40.7%, 68.1%, 0%, 47.1%)
CIE-LABlab(27.25, 37.57, -45.35)
CIE-LCHlch(27.25, 58.89, 309.64°)
OKLaboklab(38.92% 0.0678 -0.1293)
OKLCHoklch(38.92% 0.146 297.7)
XYZxyz(8.5442, 5.1824, 23.4671)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B87 #62872B
analogous
#2B3487 #502B87 #7E2B87
triadic
#502B87 #87502B #2B8750
tetradic
#502B87 #872B34 #62872B #2B877E
square
#502B87 #872B34 #62872B #2B877E
split-complementary
#502B87 #877E2B #34872B
monochromatic
#190D2A #341C59 #502B87 #6C3AB5 #8C60CC

Accessibility & contrast

On white

10.31
#502B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#502B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B87
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B87#FFFFFF#000000##FFFFFF
##502B871.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#434055
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502b87;
/* rgb */ color: rgb(80, 43, 135);
/* oklch */ color: oklch(38.9% 0.146 297.7);
Tailwind
colors: {
  custom: {
    50: '#8667ab',
    500: '#502b87',
    950: '#000000',
  },
}
SCSS
$custom: #502b87;
$custom-light: #8667ab;
$custom-dark: #000000;
JSON
{
  "hex": "#502b87",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 264.13,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38921,
    "c": 0.14601,
    "h": 297.7
  },
  "luminance": 0.05182
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502B87

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

Preview Lab → · Contrast checker → · Palette generator →

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