#502B89#502B89

#502B89 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.148 H 297.1°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#502B89
RGBrgb(80, 43, 137)
HSLhsl(264, 52%, 35%)
HSVhsv(264, 69%, 54%)
CMYKcmyk(41.6%, 68.6%, 0%, 46.3%)
CIE-LABlab(27.41, 38.12, -46.34)
CIE-LCHlch(27.41, 60.00, 309.45°)
OKLaboklab(39.08% 0.0675 -0.1322)
OKLCHoklch(39.08% 0.148 297.1)
XYZxyz(8.6863, 5.2392, 24.2157)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B89 #64892B
analogous
#2B3589 #502B89 #7F2B89
triadic
#502B89 #89502B #2B8950
tetradic
#502B89 #892B35 #64892B #2B897F
square
#502B89 #892B35 #64892B #2B897F
split-complementary
#502B89 #897F2B #35892B
monochromatic
#1A0E2C #351C5A #502B89 #6B3AB8 #8C61CD

Accessibility & contrast

On white

10.25
#502B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502B89
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B89#FFFFFF#000000##FFFFFF
##502B891.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#424156
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502b89;
/* rgb */ color: rgb(80, 43, 137);
/* oklch */ color: oklch(39.1% 0.148 297.1);
Tailwind
colors: {
  custom: {
    50: '#8667ac',
    500: '#502b89',
    950: '#000000',
  },
}
SCSS
$custom: #502b89;
$custom-light: #8667ac;
$custom-dark: #000000;
JSON
{
  "hex": "#502b89",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 137
  },
  "hsl": {
    "h": 263.617,
    "s": 52.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39084,
    "c": 0.14847,
    "h": 297.1
  },
  "luminance": 0.05239
}

Semantic roles & 50–950 ramp

primary
#502B89
secondary
#91B35C
accent
#DC4CA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502B89

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

Preview Lab → · Contrast checker → · Palette generator →

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