#502B88#502B88

#502B88 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.147 H 297.4°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#502B88
RGBrgb(80, 43, 136)
HSLhsl(264, 52%, 35%)
HSVhsv(264, 68%, 53%)
CMYKcmyk(41.2%, 68.4%, 0%, 46.7%)
CIE-LABlab(27.33, 37.85, -45.84)
CIE-LCHlch(27.33, 59.45, 309.54°)
OKLaboklab(39% 0.0677 -0.1308)
OKLCHoklch(39% 0.147 297.4)
XYZxyz(8.6149, 5.2107, 23.8396)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B88 #63882B
analogous
#2B3588 #502B88 #7E2B88
triadic
#502B88 #88502B #2B8850
tetradic
#502B88 #882B35 #63882B #2B887E
square
#502B88 #882B35 #63882B #2B887E
split-complementary
#502B88 #887E2B #35882B
monochromatic
#190E2B #351C5A #502B88 #6B3AB6 #8C61CD

Accessibility & contrast

On white

10.28
#502B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502B88
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B88#FFFFFF#000000##FFFFFF
##502B881.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#424155
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502b88;
/* rgb */ color: rgb(80, 43, 136);
/* oklch */ color: oklch(39.0% 0.147 297.4);
Tailwind
colors: {
  custom: {
    50: '#8667ab',
    500: '#502b88',
    950: '#000000',
  },
}
SCSS
$custom: #502b88;
$custom-light: #8667ab;
$custom-dark: #000000;
JSON
{
  "hex": "#502b88",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 136
  },
  "hsl": {
    "h": 263.871,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.14725,
    "h": 297.4
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#502B88
secondary
#90B35C
accent
#DB4CA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502B88

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

Preview Lab → · Contrast checker → · Palette generator →

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