#502180#502180

#502180 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.151 H 302.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#502180
RGBrgb(80, 33, 128)
HSLhsl(270, 59%, 32%)
HSVhsv(270, 74%, 50%)
CMYKcmyk(37.5%, 74.2%, 0%, 49.8%)
CIE-LABlab(24.80, 40.92, -44.93)
CIE-LCHlch(24.80, 60.77, 312.33°)
OKLaboklab(37% 0.08 -0.128)
OKLCHoklch(37% 0.151 302)
XYZxyz(7.7475, 4.3517, 20.8497)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502180 #518021
analogous
#212280 #502180 #802180
triadic
#502180 #805021 #218050
tetradic
#502180 #802122 #518021 #218080
square
#502180 #802122 #518021 #218080
split-complementary
#502180 #808021 #228021
monochromatic
#13081F #32144F #502180 #6E2EB1 #8D4BD1

Accessibility & contrast

On white

11.23
#502180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#502180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502180
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502180#FFFFFF#000000##FFFFFF
##5021801.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#46384E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #502180;
/* rgb */ color: rgb(80, 33, 128);
/* oklch */ color: oklch(37.0% 0.151 302.0);
Tailwind
colors: {
  custom: {
    50: '#8661a6',
    500: '#502180',
    950: '#000000',
  },
}
SCSS
$custom: #502180;
$custom-light: #8661a6;
$custom-dark: #000000;
JSON
{
  "hex": "#502180",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 269.684,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36998,
    "c": 0.15097,
    "h": 302
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#502180
secondary
#7FB34A
accent
#E24695
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #502180

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

Preview Lab → · Contrast checker → · Palette generator →

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