#502399#502399

#502399 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.177 H 294.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#502399
RGBrgb(80, 35, 153)
HSLhsl(263, 63%, 37%)
HSVhsv(263, 77%, 60%)
CMYKcmyk(47.7%, 77.1%, 0%, 40%)
CIE-LABlab(27.32, 46.60, -56.36)
CIE-LCHlch(27.32, 73.13, 309.59°)
OKLaboklab(39.45% 0.0721 -0.1616)
OKLCHoklch(39.45% 0.177 294)
XYZxyz(9.6575, 5.2072, 30.6271)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502399 #6C9923
analogous
#233199 #502399 #8B2399
triadic
#502399 #995023 #239950
tetradic
#502399 #992331 #6C9923 #23998B
square
#502399 #992331 #6C9923 #23998B
split-complementary
#502399 #998B23 #319923
monochromatic
#1C0C35 #361867 #502399 #6A2ECB #8C5DDA

Accessibility & contrast

On white

10.29
#502399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#502399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502399
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502399#FFFFFF#000000##FFFFFF
##5023991.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#3A435D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502399;
/* rgb */ color: rgb(80, 35, 153);
/* oklch */ color: oklch(39.4% 0.177 294.0);
Tailwind
colors: {
  custom: {
    50: '#8963b8',
    500: '#502399',
    950: '#000000',
  },
}
SCSS
$custom: #502399;
$custom-light: #8963b8;
$custom-dark: #000000;
JSON
{
  "hex": "#502399",
  "rgb": {
    "r": 80,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 262.881,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39445,
    "c": 0.17695,
    "h": 294
  },
  "luminance": 0.05207
}

Semantic roles & 50–950 ramp

primary
#502399
secondary
#98BE59
accent
#E642A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502399

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

Preview Lab → · Contrast checker → · Palette generator →

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