#502179#502179

#502179 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.143 H 304.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#502179
RGBrgb(80, 33, 121)
HSLhsl(272, 57%, 30%)
HSVhsv(272, 73%, 47%)
CMYKcmyk(33.9%, 72.7%, 0%, 52.5%)
CIE-LABlab(24.24, 39.12, -41.41)
CIE-LCHlch(24.24, 56.97, 313.37°)
OKLaboklab(36.42% 0.0812 -0.1177)
OKLCHoklch(36.42% 0.143 304.6)
XYZxyz(7.3025, 4.1737, 18.5063)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502179 #4A7921
analogous
#242179 #502179 #792176
triadic
#502179 #795021 #217950
tetradic
#502179 #792421 #4A7921 #217679
square
#502179 #792421 #4A7921 #217679
split-complementary
#502179 #767921 #217924
monochromatic
#100719 #301449 #502179 #702EA9 #8F47CD

Accessibility & contrast

On white

11.45
#502179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#502179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502179
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502179#FFFFFF#000000##FFFFFF
##5021791.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003A77
Tritanopia (blue-blind)
#48354A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #502179;
/* rgb */ color: rgb(80, 33, 121);
/* oklch */ color: oklch(36.4% 0.143 304.6);
Tailwind
colors: {
  custom: {
    50: '#8560a0',
    500: '#502179',
    950: '#000000',
  },
}
SCSS
$custom: #502179;
$custom-light: #8560a0;
$custom-dark: #000000;
JSON
{
  "hex": "#502179",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 272.045,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3642,
    "c": 0.14301,
    "h": 304.6
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#502179
secondary
#78AC4A
accent
#E0478F
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #502179

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

Preview Lab → · Contrast checker → · Palette generator →

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