#4D1C87#4D1C87

#4D1C87 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.164 H 298.6°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4D1C87
RGBrgb(77, 28, 135)
HSLhsl(267, 66%, 32%)
HSVhsv(267, 79%, 53%)
CMYKcmyk(43%, 79.3%, 0%, 47.1%)
CIE-LABlab(24.19, 44.51, -50.35)
CIE-LCHlch(24.19, 67.21, 311.48°)
OKLaboklab(36.66% 0.0785 -0.144)
OKLCHoklch(36.66% 0.164 298.6)
XYZxyz(7.8479, 4.1574, 23.3060)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C87 #56871C
analogous
#1C2087 #4D1C87 #831C87
triadic
#4D1C87 #874D1C #1C874D
tetradic
#4D1C87 #871C20 #56871C #1C8783
square
#4D1C87 #871C20 #56871C #1C8783
split-complementary
#4D1C87 #87831C #20871C
monochromatic
#130722 #301154 #4D1C87 #6A27BA #8945D8

Accessibility & contrast

On white

11.47
#4D1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C87
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C87#FFFFFF#000000##FFFFFF
##4D1C871.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#3F3951
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1c87;
/* rgb */ color: rgb(77, 28, 135);
/* oklch */ color: oklch(36.7% 0.164 298.6);
Tailwind
colors: {
  custom: {
    50: '#855eab',
    500: '#4d1c87',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c87;
$custom-light: #855eab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c87",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 267.477,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36663,
    "c": 0.16403,
    "h": 298.6
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#4D1C87
secondary
#84BA45
accent
#E93F9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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