#501672#501672

#501672 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.149 H 309.1°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#501672
RGBrgb(80, 22, 114)
HSLhsl(278, 68%, 27%)
HSVhsv(278, 81%, 45%)
CMYKcmyk(29.8%, 80.7%, 0%, 55.3%)
CIE-LABlab(21.92, 42.38, -40.68)
CIE-LCHlch(21.92, 58.74, 316.17°)
OKLaboklab(34.61% 0.094 -0.1155)
OKLCHoklch(34.61% 0.149 309.1)
XYZxyz(6.6318, 3.4943, 16.2414)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501672 #387216
analogous
#221672 #501672 #721666
triadic
#501672 #725016 #167250
tetradic
#501672 #722216 #387216 #166672
square
#501672 #722216 #387216 #166672
split-complementary
#501672 #667216 #167222
monochromatic
#12051A #2C0C3F #501672 #7420A5 #972CD6

Accessibility & contrast

On white

12.36
#501672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#501672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501672
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501672#FFFFFF#000000##FFFFFF
##5016721.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#4B2D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #501672;
/* rgb */ color: rgb(80, 22, 114);
/* oklch */ color: oklch(34.6% 0.149 309.1);
Tailwind
colors: {
  custom: {
    50: '#855b9b',
    500: '#501672',
    950: '#000000',
  },
}
SCSS
$custom: #501672;
$custom-light: #855b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#501672",
  "rgb": {
    "r": 80,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 277.826,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34605,
    "c": 0.14889,
    "h": 309.1
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#501672
secondary
#64A83C
accent
#EB3D7D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501672

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

Preview Lab → · Contrast checker → · Palette generator →

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