#502398#502398

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

Color values

HEX#502398
RGBrgb(80, 35, 152)
HSLhsl(263, 63%, 37%)
HSVhsv(263, 77%, 60%)
CMYKcmyk(47.4%, 77%, 0%, 40.4%)
CIE-LABlab(27.23, 46.33, -55.89)
CIE-LCHlch(27.23, 72.60, 309.66°)
OKLaboklab(39.35% 0.0723 -0.1603)
OKLCHoklch(39.35% 0.176 294.3)
XYZxyz(9.5752, 5.1743, 30.1939)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502398 #6B9823
analogous
#233198 #502398 #8B2398
triadic
#502398 #985023 #239850
tetradic
#502398 #982331 #6B9823 #23988B
square
#502398 #982331 #6B9823 #23988B
split-complementary
#502398 #988B23 #319823
monochromatic
#1C0C35 #361866 #502398 #6A2ECA #8C5CD9

Accessibility & contrast

On white

10.32
#502398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502398
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502398#FFFFFF#000000##FFFFFF
##5023981.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502398;
/* rgb */ color: rgb(80, 35, 152);
/* oklch */ color: oklch(39.4% 0.176 294.3);
Tailwind
colors: {
  custom: {
    50: '#8963b7',
    500: '#502398',
    950: '#000000',
  },
}
SCSS
$custom: #502398;
$custom-light: #8963b7;
$custom-dark: #000000;
JSON
{
  "hex": "#502398",
  "rgb": {
    "r": 80,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 263.077,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39353,
    "c": 0.17582,
    "h": 294.3
  },
  "luminance": 0.05175
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502398

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

Preview Lab → · Contrast checker → · Palette generator →

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