#502B8A#502B8A

#502B8A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.150 H 296.7°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#502B8A
RGBrgb(80, 43, 138)
HSLhsl(263, 52%, 35%)
HSVhsv(263, 69%, 54%)
CMYKcmyk(42%, 68.8%, 0%, 45.9%)
CIE-LABlab(27.48, 38.40, -46.83)
CIE-LCHlch(27.48, 60.56, 309.35°)
OKLaboklab(39.17% 0.0674 -0.1337)
OKLCHoklch(39.17% 0.15 296.7)
XYZxyz(8.7584, 5.2680, 24.5952)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B8A #658A2B
analogous
#2B368A #502B8A #7F2B8A
triadic
#502B8A #8A502B #2B8A50
tetradic
#502B8A #8A2B36 #658A2B #2B8A7F
square
#502B8A #8A2B36 #658A2B #2B8A7F
split-complementary
#502B8A #8A7F2B #368A2B
monochromatic
#1A0E2D #351C5B #502B8A #6B3AB9 #8C61CE

Accessibility & contrast

On white

10.23
#502B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#502B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B8A
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B8A#FFFFFF#000000##FFFFFF
##502B8A1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#414257
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502b8a;
/* rgb */ color: rgb(80, 43, 138);
/* oklch */ color: oklch(39.2% 0.150 296.7);
Tailwind
colors: {
  custom: {
    50: '#8667ad',
    500: '#502b8a',
    950: '#000000',
  },
}
SCSS
$custom: #502b8a;
$custom-light: #8667ad;
$custom-dark: #000000;
JSON
{
  "hex": "#502b8a",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 263.368,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39166,
    "c": 0.1497,
    "h": 296.7
  },
  "luminance": 0.05268
}

Semantic roles & 50–950 ramp

primary
#502B8A
secondary
#92B45D
accent
#DC4CA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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