#502B8D#502B8D

#502B8D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.153 H 295.9°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#502B8D
RGBrgb(80, 43, 141)
HSLhsl(263, 53%, 36%)
HSVhsv(263, 70%, 55%)
CMYKcmyk(43.3%, 69.5%, 0%, 44.7%)
CIE-LABlab(27.73, 39.24, -48.30)
CIE-LCHlch(27.73, 62.23, 309.09°)
OKLaboklab(39.42% 0.0669 -0.138)
OKLCHoklch(39.42% 0.153 295.9)
XYZxyz(8.9786, 5.3561, 25.7549)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B8D #688D2B
analogous
#2B378D #502B8D #812B8D
triadic
#502B8D #8D502B #2B8D50
tetradic
#502B8D #8D2B37 #688D2B #2B8D81
square
#502B8D #8D2B37 #688D2B #2B8D81
split-complementary
#502B8D #8D812B #378D2B
monochromatic
#1B0E2F #351D5E #502B8D #6B39BC #8C63CF

Accessibility & contrast

On white

10.14
#502B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#502B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B8D
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B8D#FFFFFF#000000##FFFFFF
##502B8D1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#404358
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502b8d;
/* rgb */ color: rgb(80, 43, 141);
/* oklch */ color: oklch(39.4% 0.153 295.9);
Tailwind
colors: {
  custom: {
    50: '#8767af',
    500: '#502b8d',
    950: '#000000',
  },
}
SCSS
$custom: #502b8d;
$custom-light: #8767af;
$custom-dark: #000000;
JSON
{
  "hex": "#502b8d",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 262.653,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39415,
    "c": 0.15337,
    "h": 295.9
  },
  "luminance": 0.05356
}

Semantic roles & 50–950 ramp

primary
#502B8D
secondary
#95B65E
accent
#DD4BA6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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