#502B9E#502B9E

#502B9E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.174 H 291.5°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#502B9E
RGBrgb(80, 43, 158)
HSLhsl(259, 57%, 39%)
HSVhsv(259, 73%, 62%)
CMYKcmyk(49.4%, 72.8%, 0%, 38%)
CIE-LABlab(29.16, 44.04, -56.39)
CIE-LCHlch(29.16, 71.55, 307.99°)
OKLaboklab(40.89% 0.0637 -0.1618)
OKLCHoklch(40.89% 0.174 291.5)
XYZxyz(10.3420, 5.9015, 32.9353)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B9E #799E2B
analogous
#2B409E #502B9E #8A2B9E
triadic
#502B9E #9E502B #2B9E50
tetradic
#502B9E #9E2B40 #799E2B #2B9E8A
square
#502B9E #9E2B40 #799E2B #2B9E8A
split-complementary
#502B9E #9E8A2B #409E2B
monochromatic
#1F113E #381E6E #502B9E #6A3CCA #8F6CD7

Accessibility & contrast

On white

9.63
#502B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#502B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B9E
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B9E#FFFFFF#000000##FFFFFF
##502B9E1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#374962
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502b9e;
/* rgb */ color: rgb(80, 43, 158);
/* oklch */ color: oklch(40.9% 0.174 291.5);
Tailwind
colors: {
  custom: {
    50: '#8968bc',
    500: '#502b9e',
    950: '#000000',
  },
}
SCSS
$custom: #502b9e;
$custom-light: #8968bc;
$custom-dark: #000000;
JSON
{
  "hex": "#502b9e",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 259.304,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40885,
    "c": 0.17386,
    "h": 291.5
  },
  "luminance": 0.05902
}

Semantic roles & 50–950 ramp

primary
#502B9E
secondary
#A2BE67
accent
#E047AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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