#502E9F#502E9F

#502E9F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.172 H 290.7°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#502E9F
RGBrgb(80, 46, 159)
HSLhsl(258, 55%, 40%)
HSVhsv(258, 71%, 62%)
CMYKcmyk(49.7%, 71.1%, 0%, 37.6%)
CIE-LABlab(29.82, 42.74, -55.92)
CIE-LCHlch(29.82, 70.38, 307.39°)
OKLaboklab(41.38% 0.0607 -0.1604)
OKLCHoklch(41.38% 0.172 290.7)
XYZxyz(10.5415, 6.1623, 33.4282)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E9F #7D9F2E
analogous
#2E459F #502E9F #882E9F
triadic
#502E9F #9F502E #2E9F50
tetradic
#502E9F #9F2E45 #7D9F2E #2E9F88
square
#502E9F #9F2E45 #7D9F2E #2E9F88
split-complementary
#502E9F #9F882E #459F2E
monochromatic
#201340 #382070 #502E9F #6A42C8 #9071D6

Accessibility & contrast

On white

9.41
#502E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#502E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E9F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E9F#FFFFFF#000000##FFFFFF
##502E9F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#364B63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502e9f;
/* rgb */ color: rgb(80, 46, 159);
/* oklch */ color: oklch(41.4% 0.172 290.7);
Tailwind
colors: {
  custom: {
    50: '#896abc',
    500: '#502e9f',
    950: '#000000',
  },
}
SCSS
$custom: #502e9f;
$custom-light: #896abc;
$custom-dark: #000000;
JSON
{
  "hex": "#502e9f",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 258.053,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41378,
    "c": 0.17152,
    "h": 290.7
  },
  "luminance": 0.06163
}

Semantic roles & 50–950 ramp

primary
#502E9F
secondary
#A5BE6B
accent
#DE49B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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