#502E9B#502E9B

#502E9B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.167 H 291.6°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#502E9B
RGBrgb(80, 46, 155)
HSLhsl(259, 54%, 39%)
HSVhsv(259, 70%, 61%)
CMYKcmyk(48.4%, 70.3%, 0%, 39.2%)
CIE-LABlab(29.48, 41.58, -54.05)
CIE-LCHlch(29.48, 68.19, 307.57°)
OKLaboklab(41.03% 0.0615 -0.1549)
OKLCHoklch(41.03% 0.167 291.6)
XYZxyz(10.2000, 6.0257, 31.6296)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E9B #799B2E
analogous
#2E429B #502E9B #872E9B
triadic
#502E9B #9B502E #2E9B50
tetradic
#502E9B #9B2E42 #799B2E #2E9B87
square
#502E9B #9B2E42 #799B2E #2E9B87
split-complementary
#502E9B #9B872E #429B2E
monochromatic
#1F123D #38206C #502E9B #6A40C6 #8F6FD4

Accessibility & contrast

On white

9.52
#502E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#502E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E9B
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E9B#FFFFFF#000000##FFFFFF
##502E9B1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#384961
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502e9b;
/* rgb */ color: rgb(80, 46, 155);
/* oklch */ color: oklch(41.0% 0.167 291.6);
Tailwind
colors: {
  custom: {
    50: '#8869b9',
    500: '#502e9b',
    950: '#000000',
  },
}
SCSS
$custom: #502e9b;
$custom-light: #8869b9;
$custom-dark: #000000;
JSON
{
  "hex": "#502e9b",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 258.716,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41029,
    "c": 0.16664,
    "h": 291.6
  },
  "luminance": 0.06026
}

Semantic roles & 50–950 ramp

primary
#502E9B
secondary
#A2BC69
accent
#DE4AB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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