#502191#502191

#502191 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.170 H 296.5°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#502191
RGBrgb(80, 33, 145)
HSLhsl(265, 63%, 35%)
HSVhsv(265, 77%, 57%)
CMYKcmyk(44.8%, 77.2%, 0%, 43.1%)
CIE-LABlab(26.27, 45.39, -53.16)
CIE-LCHlch(26.27, 69.90, 310.49°)
OKLaboklab(38.49% 0.076 -0.1522)
OKLCHoklch(38.49% 0.17 296.5)
XYZxyz(8.9616, 4.8373, 27.2441)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502191 #629121
analogous
#212A91 #502191 #882191
triadic
#502191 #915021 #219150
tetradic
#502191 #91212A #629121 #219188
square
#502191 #91212A #629121 #219188
split-complementary
#502191 #918821 #2A9121
monochromatic
#190A2D #34165F #502191 #6C2CC3 #8C54D8

Accessibility & contrast

On white

10.67
#502191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502191
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502191#FFFFFF#000000##FFFFFF
##5021911.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502191;
/* rgb */ color: rgb(80, 33, 145);
/* oklch */ color: oklch(38.5% 0.170 296.5);
Tailwind
colors: {
  custom: {
    50: '#8862b2',
    500: '#502191',
    950: '#000000',
  },
}
SCSS
$custom: #502191;
$custom-light: #8862b2;
$custom-dark: #000000;
JSON
{
  "hex": "#502191",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 265.179,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38485,
    "c": 0.17011,
    "h": 296.5
  },
  "luminance": 0.04838
}

Semantic roles & 50–950 ramp

primary
#502191
secondary
#8FBC52
accent
#E642A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502191

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

Preview Lab → · Contrast checker → · Palette generator →

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