#502298#502298

#502298 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.177 H 294.4°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#502298
RGBrgb(80, 34, 152)
HSLhsl(263, 63%, 36%)
HSVhsv(263, 78%, 60%)
CMYKcmyk(47.4%, 77.6%, 0%, 40.4%)
CIE-LABlab(27.06, 46.80, -56.16)
CIE-LCHlch(27.06, 73.10, 309.80°)
OKLaboklab(39.24% 0.0732 -0.161)
OKLCHoklch(39.24% 0.177 294.4)
XYZxyz(9.5462, 5.1163, 30.1842)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502298 #6A9822
analogous
#222F98 #502298 #8B2298
triadic
#502298 #985022 #229850
tetradic
#502298 #98222F #6A9822 #22988B
square
#502298 #98222F #6A9822 #22988B
split-complementary
#502298 #988B22 #2F9822
monochromatic
#1B0C34 #361766 #502298 #6A2DCA #8C5ADA

Accessibility & contrast

On white

10.38
#502298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#502298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502298
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502298#FFFFFF#000000##FFFFFF
##5022981.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#3B425C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502298;
/* rgb */ color: rgb(80, 34, 152);
/* oklch */ color: oklch(39.2% 0.177 294.4);
Tailwind
colors: {
  custom: {
    50: '#8963b7',
    500: '#502298',
    950: '#000000',
  },
}
SCSS
$custom: #502298;
$custom-light: #8963b7;
$custom-dark: #000000;
JSON
{
  "hex": "#502298",
  "rgb": {
    "r": 80,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 263.39,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3924,
    "c": 0.17687,
    "h": 294.4
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#502298
secondary
#96BE57
accent
#E641A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502298

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

Preview Lab → · Contrast checker → · Palette generator →

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