#502194#502194

#502194 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.173 H 295.7°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#502194
RGBrgb(80, 33, 148)
HSLhsl(265, 64%, 35%)
HSVhsv(265, 78%, 58%)
CMYKcmyk(45.9%, 77.7%, 0%, 42%)
CIE-LABlab(26.54, 46.19, -54.56)
CIE-LCHlch(26.54, 71.49, 310.25°)
OKLaboklab(38.76% 0.0751 -0.1563)
OKLCHoklch(38.76% 0.173 295.7)
XYZxyz(9.1960, 4.9311, 28.4785)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502194 #659421
analogous
#212B94 #502194 #892194
triadic
#502194 #945021 #219450
tetradic
#502194 #94212B #659421 #219489
square
#502194 #94212B #659421 #219489
split-complementary
#502194 #948921 #2B9421
monochromatic
#1A0B30 #351662 #502194 #6B2CC6 #8C56D9

Accessibility & contrast

On white

10.57
#502194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#502194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502194
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502194#FFFFFF#000000##FFFFFF
##5021941.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502194;
/* rgb */ color: rgb(80, 33, 148);
/* oklch */ color: oklch(38.8% 0.173 295.7);
Tailwind
colors: {
  custom: {
    50: '#8862b4',
    500: '#502194',
    950: '#000000',
  },
}
SCSS
$custom: #502194;
$custom-light: #8862b4;
$custom-dark: #000000;
JSON
{
  "hex": "#502194",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 264.522,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38759,
    "c": 0.17346,
    "h": 295.7
  },
  "luminance": 0.04931
}

Semantic roles & 50–950 ramp

primary
#502194
secondary
#92BD54
accent
#E741A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502194

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

Preview Lab → · Contrast checker → · Palette generator →

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