#502299#502299

#502299 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.178 H 294.2°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#502299
RGBrgb(80, 34, 153)
HSLhsl(263, 64%, 37%)
HSVhsv(263, 78%, 60%)
CMYKcmyk(47.7%, 77.8%, 0%, 40%)
CIE-LABlab(27.16, 47.07, -56.62)
CIE-LCHlch(27.16, 73.63, 309.74°)
OKLaboklab(39.33% 0.0729 -0.1624)
OKLCHoklch(39.33% 0.178 294.2)
XYZxyz(9.6285, 5.1491, 30.6174)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502299 #6B9922
analogous
#223099 #502299 #8C2299
triadic
#502299 #995022 #229950
tetradic
#502299 #992230 #6B9922 #22998C
square
#502299 #992230 #6B9922 #22998C
split-complementary
#502299 #998C22 #309922
monochromatic
#1C0C35 #361767 #502299 #6A2DCB #8C5BDB

Accessibility & contrast

On white

10.35
#502299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#502299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502299
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502299#FFFFFF#000000##FFFFFF
##5022991.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502299;
/* rgb */ color: rgb(80, 34, 153);
/* oklch */ color: oklch(39.3% 0.178 294.2);
Tailwind
colors: {
  custom: {
    50: '#8963b8',
    500: '#502299',
    950: '#000000',
  },
}
SCSS
$custom: #502299;
$custom-light: #8963b8;
$custom-dark: #000000;
JSON
{
  "hex": "#502299",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 263.193,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39332,
    "c": 0.178,
    "h": 294.2
  },
  "luminance": 0.05149
}

Semantic roles & 50–950 ramp

primary
#502299
secondary
#97BF58
accent
#E741A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502299

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

Preview Lab → · Contrast checker → · Palette generator →

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