#4D1781#4D1781

#4D1781 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.163 H 301.3°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#4D1781
RGBrgb(77, 23, 129)
HSLhsl(271, 70%, 30%)
HSVhsv(271, 82%, 51%)
CMYKcmyk(40.3%, 82.2%, 0%, 49.4%)
CIE-LABlab(22.91, 45.07, -48.66)
CIE-LCHlch(22.91, 66.33, 312.81°)
OKLaboklab(35.61% 0.0845 -0.139)
OKLCHoklch(35.61% 0.163 301.3)
XYZxyz(7.3284, 3.7755, 21.1073)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1781 #4B8117
analogous
#181781 #4D1781 #811780
triadic
#4D1781 #814D17 #17814D
tetradic
#4D1781 #811817 #4B8117 #178081
square
#4D1781 #811817 #4B8117 #178081
split-complementary
#4D1781 #808117 #178118
monochromatic
#10051A #2E0E4D #4D1781 #6C20B5 #8B37DB

Accessibility & contrast

On white

11.96
#4D1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1781
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1781#FFFFFF#000000##FFFFFF
##4D17811.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1781;
/* rgb */ color: rgb(77, 23, 129);
/* oklch */ color: oklch(35.6% 0.163 301.3);
Tailwind
colors: {
  custom: {
    50: '#855ca6',
    500: '#4d1781',
    950: '#000000',
  },
}
SCSS
$custom: #4d1781;
$custom-light: #855ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1781",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 270.566,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35608,
    "c": 0.16267,
    "h": 301.3
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#4D1781
secondary
#79B53E
accent
#ED3B92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1781

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

Preview Lab → · Contrast checker → · Palette generator →

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