#502193#502193

#502193 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.172 H 296.0°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#502193
RGBrgb(80, 33, 147)
HSLhsl(265, 63%, 35%)
HSVhsv(265, 78%, 58%)
CMYKcmyk(45.6%, 77.6%, 0%, 42.4%)
CIE-LABlab(26.45, 45.92, -54.09)
CIE-LCHlch(26.45, 70.96, 310.33°)
OKLaboklab(38.67% 0.0754 -0.155)
OKLCHoklch(38.67% 0.172 296)
XYZxyz(9.1172, 4.8996, 28.0635)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502193 #649321
analogous
#212B93 #502193 #892193
triadic
#502193 #935021 #219350
tetradic
#502193 #93212B #649321 #219389
square
#502193 #93212B #649321 #219389
split-complementary
#502193 #938921 #2B9321
monochromatic
#1A0B2F #351661 #502193 #6B2CC5 #8C55D9

Accessibility & contrast

On white

10.61
#502193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#502193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502193
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502193#FFFFFF#000000##FFFFFF
##5021931.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#003D91
Tritanopia (blue-blind)
#3D4059
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #502193;
/* rgb */ color: rgb(80, 33, 147);
/* oklch */ color: oklch(38.7% 0.172 296.0);
Tailwind
colors: {
  custom: {
    50: '#8862b4',
    500: '#502193',
    950: '#000000',
  },
}
SCSS
$custom: #502193;
$custom-light: #8862b4;
$custom-dark: #000000;
JSON
{
  "hex": "#502193",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 264.737,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38667,
    "c": 0.17235,
    "h": 296
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

primary
#502193
secondary
#91BD53
accent
#E641A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502193

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

Preview Lab → · Contrast checker → · Palette generator →

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