#501870#501870

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

Color values

HEX#501870
RGBrgb(80, 24, 112)
HSLhsl(278, 65%, 27%)
HSVhsv(278, 79%, 44%)
CMYKcmyk(28.6%, 78.6%, 0%, 56.1%)
CIE-LABlab(22.05, 41.09, -39.19)
CIE-LCHlch(22.05, 56.78, 316.35°)
OKLaboklab(34.64% 0.0925 -0.1111)
OKLCHoklch(34.64% 0.145 309.8)
XYZxyz(6.5589, 3.5287, 15.6617)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501870 #387018
analogous
#241870 #501870 #701864
triadic
#501870 #705018 #187050
tetradic
#501870 #702418 #387018 #186470
square
#501870 #702418 #387018 #186470
split-complementary
#501870 #647018 #187024
monochromatic
#120519 #2C0D3E #501870 #7423A2 #9730D3

Accessibility & contrast

On white

12.31
#501870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#501870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501870
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501870#FFFFFF#000000##FFFFFF
##5018701.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#01366E
Tritanopia (blue-blind)
#4B2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #501870;
/* rgb */ color: rgb(80, 24, 112);
/* oklch */ color: oklch(34.6% 0.145 309.8);
Tailwind
colors: {
  custom: {
    50: '#855b9a',
    500: '#501870',
    950: '#000000',
  },
}
SCSS
$custom: #501870;
$custom-light: #855b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#501870",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 278.182,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34641,
    "c": 0.14457,
    "h": 309.8
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

primary
#501870
secondary
#64A53E
accent
#E8407D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #501870

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

Preview Lab → · Contrast checker → · Palette generator →

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