#502E99#502E99

#502E99 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.164 H 292.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#502E99
RGBrgb(80, 46, 153)
HSLhsl(259, 54%, 39%)
HSVhsv(259, 70%, 60%)
CMYKcmyk(47.7%, 69.9%, 0%, 40%)
CIE-LABlab(29.31, 41.01, -53.10)
CIE-LCHlch(29.31, 67.09, 307.68°)
OKLaboklab(40.86% 0.0618 -0.1521)
OKLCHoklch(40.86% 0.164 292.1)
XYZxyz(10.0334, 5.9590, 30.7524)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E99 #77992E
analogous
#2E4299 #502E99 #862E99
triadic
#502E99 #99502E #2E9950
tetradic
#502E99 #992E42 #77992E #2E9986
square
#502E99 #992E42 #77992E #2E9986
split-complementary
#502E99 #99862E #42992E
monochromatic
#1F123B #37206A #502E99 #6A3FC5 #8E6ED3

Accessibility & contrast

On white

9.58
#502E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#502E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E99
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E99#FFFFFF#000000##FFFFFF
##502E991.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#3A4960
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502e99;
/* rgb */ color: rgb(80, 46, 153);
/* oklch */ color: oklch(40.9% 0.164 292.1);
Tailwind
colors: {
  custom: {
    50: '#8869b8',
    500: '#502e99',
    950: '#000000',
  },
}
SCSS
$custom: #502e99;
$custom-light: #8869b8;
$custom-dark: #000000;
JSON
{
  "hex": "#502e99",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 259.065,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40856,
    "c": 0.16421,
    "h": 292.1
  },
  "luminance": 0.05959
}

Semantic roles & 50–950 ramp

primary
#502E99
secondary
#A0BB68
accent
#DD4BAF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502E99

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

Preview Lab → · Contrast checker → · Palette generator →

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