#502F99#502F99

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

Color values

HEX#502F99
RGBrgb(80, 47, 153)
HSLhsl(259, 53%, 39%)
HSVhsv(259, 69%, 60%)
CMYKcmyk(47.7%, 69.3%, 0%, 40%)
CIE-LABlab(29.51, 40.46, -52.78)
CIE-LCHlch(29.51, 66.50, 307.47°)
OKLaboklab(41% 0.0608 -0.1512)
OKLCHoklch(41% 0.163 291.9)
XYZxyz(10.0729, 6.0381, 30.7655)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502F99 #78992F
analogous
#2F4399 #502F99 #852F99
triadic
#502F99 #99502F #2F9950
tetradic
#502F99 #992F43 #78992F #2F9985
square
#502F99 #992F43 #78992F #2F9985
split-complementary
#502F99 #99852F #43992F
monochromatic
#1F123B #38216A #502F99 #6A41C5 #8E6FD3

Accessibility & contrast

On white

9.51
#502F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502F99
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502F99#FFFFFF#000000##FFFFFF
##502F991.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#394960
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502f99;
/* rgb */ color: rgb(80, 47, 153);
/* oklch */ color: oklch(41.0% 0.163 291.9);
Tailwind
colors: {
  custom: {
    50: '#886ab8',
    500: '#502f99',
    950: '#000000',
  },
}
SCSS
$custom: #502f99;
$custom-light: #886ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#502f99",
  "rgb": {
    "r": 80,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 258.679,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40999,
    "c": 0.16293,
    "h": 291.9
  },
  "luminance": 0.06038
}

Semantic roles & 50–950 ramp

primary
#502F99
secondary
#A1BA69
accent
#DC4BAF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502F99

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

Preview Lab → · Contrast checker → · Palette generator →

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