#501895#501895

#501895 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.183 H 296.5°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#501895
RGBrgb(80, 24, 149)
HSLhsl(267, 72%, 34%)
HSVhsv(267, 84%, 58%)
CMYKcmyk(46.3%, 83.9%, 0%, 41.6%)
CIE-LABlab(25.35, 50.17, -57.13)
CIE-LCHlch(25.35, 76.03, 311.29°)
OKLaboklab(37.96% 0.0817 -0.1638)
OKLCHoklch(37.96% 0.183 296.5)
XYZxyz(9.0583, 4.5285, 28.8248)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501895 #5D9518
analogous
#181F95 #501895 #8F1895
triadic
#501895 #955018 #189550
tetradic
#501895 #95181F #5D9518 #18958F
square
#501895 #95181F #5D9518 #18958F
split-complementary
#501895 #958F18 #1F9518
monochromatic
#17072C #341060 #501895 #6C20CA #8C46E1

Accessibility & contrast

On white

11.02
#501895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501895
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501895#FFFFFF#000000##FFFFFF
##5018951.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#3D3D58
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #501895;
/* rgb */ color: rgb(80, 24, 149);
/* oklch */ color: oklch(38.0% 0.183 296.5);
Tailwind
colors: {
  custom: {
    50: '#895eb5',
    500: '#501895',
    950: '#000000',
  },
}
SCSS
$custom: #501895;
$custom-light: #895eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#501895",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 266.88,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3796,
    "c": 0.18304,
    "h": 296.5
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#501895
secondary
#8BC246
accent
#EF399D
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #501895

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

Preview Lab → · Contrast checker → · Palette generator →

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