#502C81#502C81

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

Color values

HEX#502C81
RGBrgb(80, 44, 129)
HSLhsl(265, 49%, 34%)
HSVhsv(265, 66%, 51%)
CMYKcmyk(38%, 65.9%, 0%, 49.4%)
CIE-LABlab(26.99, 35.35, -42.00)
CIE-LCHlch(26.99, 54.90, 310.08°)
OKLaboklab(38.59% 0.0673 -0.1195)
OKLCHoklch(38.59% 0.137 299.4)
XYZxyz(8.1704, 5.0917, 21.3170)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C81 #5D812C
analogous
#2C3381 #502C81 #7B2C81
triadic
#502C81 #81502C #2C8150
tetradic
#502C81 #812C33 #5D812C #2C817B
square
#502C81 #812C33 #5D812C #2C817B
split-complementary
#502C81 #817B2C #33812C
monochromatic
#170D26 #341C53 #502C81 #6C3CAF #8C5FC8

Accessibility & contrast

On white

10.40
#502C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#502C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C81
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C81#FFFFFF#000000##FFFFFF
##502C811.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#043F7F
Tritanopia (blue-blind)
#453F52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502c81;
/* rgb */ color: rgb(80, 44, 129);
/* oklch */ color: oklch(38.6% 0.137 299.4);
Tailwind
colors: {
  custom: {
    50: '#8567a6',
    500: '#502c81',
    950: '#000000',
  },
}
SCSS
$custom: #502c81;
$custom-light: #8567a6;
$custom-dark: #000000;
JSON
{
  "hex": "#502c81",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 265.412,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38593,
    "c": 0.13711,
    "h": 299.4
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#502C81
secondary
#8BAF5A
accent
#D94F9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502C81

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

Preview Lab → · Contrast checker → · Palette generator →

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