#502099#502099

#502099 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.180 H 294.5°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#502099
RGBrgb(80, 32, 153)
HSLhsl(264, 65%, 36%)
HSVhsv(264, 79%, 60%)
CMYKcmyk(47.7%, 79.1%, 0%, 40%)
CIE-LABlab(26.84, 47.97, -57.13)
CIE-LCHlch(26.84, 74.60, 310.01°)
OKLaboklab(39.11% 0.0745 -0.1639)
OKLCHoklch(39.11% 0.18 294.5)
XYZxyz(9.5730, 5.0381, 30.5989)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502099 #699920
analogous
#202D99 #502099 #8D2099
triadic
#502099 #995020 #209950
tetradic
#502099 #99202D #699920 #20998D
square
#502099 #99202D #699920 #20998D
split-complementary
#502099 #998D20 #2D9920
monochromatic
#1B0B34 #361566 #502099 #6A2BCC #8C57DC

Accessibility & contrast

On white

10.46
#502099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#502099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502099
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502099#FFFFFF#000000##FFFFFF
##5020991.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#3A425C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #502099;
/* rgb */ color: rgb(80, 32, 153);
/* oklch */ color: oklch(39.1% 0.180 294.5);
Tailwind
colors: {
  custom: {
    50: '#8962b8',
    500: '#502099',
    950: '#000000',
  },
}
SCSS
$custom: #502099;
$custom-light: #8962b8;
$custom-dark: #000000;
JSON
{
  "hex": "#502099",
  "rgb": {
    "r": 80,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 263.802,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39114,
    "c": 0.18001,
    "h": 294.5
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#502099
secondary
#95C055
accent
#E83FA5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502099

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

Preview Lab → · Contrast checker → · Palette generator →

#502099 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva