#4D1881#4D1881

#4D1881 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.162 H 301.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4D1881
RGBrgb(77, 24, 129)
HSLhsl(270, 69%, 30%)
HSVhsv(270, 81%, 51%)
CMYKcmyk(40.3%, 81.4%, 0%, 49.4%)
CIE-LABlab(23.05, 44.67, -48.43)
CIE-LCHlch(23.05, 65.89, 312.69°)
OKLaboklab(35.71% 0.0836 -0.1384)
OKLCHoklch(35.71% 0.162 301.1)
XYZxyz(7.3487, 3.8160, 21.1140)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1881 #4C8118
analogous
#191881 #4D1881 #811880
triadic
#4D1881 #814D18 #18814D
tetradic
#4D1881 #811918 #4C8118 #188081
square
#4D1881 #811918 #4C8118 #188081
split-complementary
#4D1881 #808118 #188119
monochromatic
#0F051A #2E0E4D #4D1881 #6C22B5 #8A39DA

Accessibility & contrast

On white

11.91
#4D1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4D1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1881
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1881#FFFFFF#000000##FFFFFF
##4D18811.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#41354D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1881;
/* rgb */ color: rgb(77, 24, 129);
/* oklch */ color: oklch(35.7% 0.162 301.1);
Tailwind
colors: {
  custom: {
    50: '#855ca6',
    500: '#4d1881',
    950: '#000000',
  },
}
SCSS
$custom: #4d1881;
$custom-light: #855ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1881",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 270.286,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.35705,
    "c": 0.16168,
    "h": 301.1
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#4D1881
secondary
#7AB540
accent
#EB3C93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1881

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

Preview Lab → · Contrast checker → · Palette generator →

#4D1881 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva