#502192#502192

#502192 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.171 H 296.2°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#502192
RGBrgb(80, 33, 146)
HSLhsl(265, 63%, 35%)
HSVhsv(265, 77%, 57%)
CMYKcmyk(45.2%, 77.4%, 0%, 42.7%)
CIE-LABlab(26.36, 45.66, -53.63)
CIE-LCHlch(26.36, 70.43, 310.41°)
OKLaboklab(38.58% 0.0757 -0.1536)
OKLCHoklch(38.58% 0.171 296.2)
XYZxyz(9.0390, 4.8683, 27.6520)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502192 #639221
analogous
#212A92 #502192 #882192
triadic
#502192 #925021 #219250
tetradic
#502192 #92212A #639221 #219288
square
#502192 #92212A #639221 #219288
split-complementary
#502192 #928821 #2A9221
monochromatic
#190A2E #351660 #502192 #6B2CC4 #8C55D9

Accessibility & contrast

On white

10.64
#502192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#502192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502192
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502192#FFFFFF#000000##FFFFFF
##5021921.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#003D90
Tritanopia (blue-blind)
#3E3F58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #502192;
/* rgb */ color: rgb(80, 33, 146);
/* oklch */ color: oklch(38.6% 0.171 296.2);
Tailwind
colors: {
  custom: {
    50: '#8862b3',
    500: '#502192',
    950: '#000000',
  },
}
SCSS
$custom: #502192;
$custom-light: #8862b3;
$custom-dark: #000000;
JSON
{
  "hex": "#502192",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 264.956,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38576,
    "c": 0.17123,
    "h": 296.2
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#502192
secondary
#90BC53
accent
#E642A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502192

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

Preview Lab → · Contrast checker → · Palette generator →

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