#502B83#502B83

#502B83 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.141 H 298.9°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#502B83
RGBrgb(80, 43, 131)
HSLhsl(265, 51%, 34%)
HSVhsv(265, 67%, 51%)
CMYKcmyk(38.9%, 67.2%, 0%, 48.6%)
CIE-LABlab(26.94, 36.46, -43.35)
CIE-LCHlch(26.94, 56.64, 310.07°)
OKLaboklab(38.6% 0.0683 -0.1234)
OKLCHoklch(38.6% 0.141 298.9)
XYZxyz(8.2679, 5.0718, 22.0117)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B83 #5E832B
analogous
#2B3283 #502B83 #7C2B83
triadic
#502B83 #83502B #2B8350
tetradic
#502B83 #832B32 #5E832B #2B837C
square
#502B83 #832B32 #5E832B #2B837C
split-complementary
#502B83 #837C2B #32832B
monochromatic
#180D27 #341C55 #502B83 #6C3AB1 #8C5ECA

Accessibility & contrast

On white

10.42
#502B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#502B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B83
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B83#FFFFFF#000000##FFFFFF
##502B831.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004086
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#443F53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502b83;
/* rgb */ color: rgb(80, 43, 131);
/* oklch */ color: oklch(38.6% 0.141 298.9);
Tailwind
colors: {
  custom: {
    50: '#8567a8',
    500: '#502b83',
    950: '#000000',
  },
}
SCSS
$custom: #502b83;
$custom-light: #8567a8;
$custom-dark: #000000;
JSON
{
  "hex": "#502b83",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 265.227,
    "s": 50.575,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38601,
    "c": 0.14106,
    "h": 298.9
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#502B83
secondary
#8CB05A
accent
#DA4E9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #502B83

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

Preview Lab → · Contrast checker → · Palette generator →

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