#502B8B#502B8B

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

Color values

HEX#502B8B
RGBrgb(80, 43, 139)
HSLhsl(263, 53%, 36%)
HSVhsv(263, 69%, 55%)
CMYKcmyk(42.4%, 69.1%, 0%, 45.5%)
CIE-LABlab(27.57, 38.68, -47.32)
CIE-LCHlch(27.57, 61.12, 309.26°)
OKLaboklab(39.25% 0.0672 -0.1351)
OKLCHoklch(39.25% 0.151 296.5)
XYZxyz(8.8311, 5.2971, 24.9783)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B8B #668B2B
analogous
#2B368B #502B8B #802B8B
triadic
#502B8B #8B502B #2B8B50
tetradic
#502B8B #8B2B36 #668B2B #2B8B80
square
#502B8B #8B2B36 #668B2B #2B8B80
split-complementary
#502B8B #8B802B #368B2B
monochromatic
#1A0E2E #351D5C #502B8B #6B39BA #8C62CE

Accessibility & contrast

On white

10.20
#502B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#502B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B8B
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B8B#FFFFFF#000000##FFFFFF
##502B8B1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#414257
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502b8b;
/* rgb */ color: rgb(80, 43, 139);
/* oklch */ color: oklch(39.2% 0.151 296.5);
Tailwind
colors: {
  custom: {
    50: '#8667ae',
    500: '#502b8b',
    950: '#000000',
  },
}
SCSS
$custom: #502b8b;
$custom-light: #8667ae;
$custom-dark: #000000;
JSON
{
  "hex": "#502b8b",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 263.125,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39249,
    "c": 0.15093,
    "h": 296.5
  },
  "luminance": 0.05297
}

Semantic roles & 50–950 ramp

primary
#502B8B
secondary
#93B55D
accent
#DC4CA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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