#502188#502188

#502188 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.160 H 299.3°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#502188
RGBrgb(80, 33, 136)
HSLhsl(267, 61%, 33%)
HSVhsv(267, 76%, 53%)
CMYKcmyk(41.2%, 75.7%, 0%, 46.7%)
CIE-LABlab(25.47, 43.01, -48.85)
CIE-LCHlch(25.47, 65.09, 311.36°)
OKLaboklab(37.68% 0.0782 -0.1396)
OKLCHoklch(37.68% 0.16 299.3)
XYZxyz(8.2949, 4.5707, 23.7330)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502188 #598821
analogous
#212588 #502188 #832188
triadic
#502188 #885021 #218850
tetradic
#502188 #882125 #598821 #218883
square
#502188 #882125 #598821 #218883
split-complementary
#502188 #888321 #258821
monochromatic
#160925 #331557 #502188 #6D2DB9 #8C4FD4

Accessibility & contrast

On white

10.97
#502188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#502188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502188
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502188#FFFFFF#000000##FFFFFF
##5021881.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#433B53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #502188;
/* rgb */ color: rgb(80, 33, 136);
/* oklch */ color: oklch(37.7% 0.160 299.3);
Tailwind
colors: {
  custom: {
    50: '#8761ac',
    500: '#502188',
    950: '#000000',
  },
}
SCSS
$custom: #502188;
$custom-light: #8761ac;
$custom-dark: #000000;
JSON
{
  "hex": "#502188",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 267.379,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37684,
    "c": 0.16001,
    "h": 299.3
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#502188
secondary
#87B84D
accent
#E4449B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #502188

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

Preview Lab → · Contrast checker → · Palette generator →

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