#4D1C96#4D1C96

#4D1C96 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.180 H 294.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#4D1C96
RGBrgb(77, 28, 150)
HSLhsl(264, 69%, 35%)
HSVhsv(264, 81%, 59%)
CMYKcmyk(48.7%, 81.3%, 0%, 41.2%)
CIE-LABlab(25.59, 48.44, -57.36)
CIE-LCHlch(25.59, 75.08, 310.18°)
OKLaboklab(38.07% 0.0738 -0.1646)
OKLCHoklch(38.07% 0.18 294.1)
XYZxyz(8.9793, 4.6100, 29.2650)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C96 #65961C
analogous
#1C2896 #4D1C96 #8A1C96
triadic
#4D1C96 #964D1C #1C964D
tetradic
#4D1C96 #961C28 #65961C #1C968A
square
#4D1C96 #961C28 #65961C #1C968A
split-complementary
#4D1C96 #968A1C #28961C
monochromatic
#18092F #331262 #4D1C96 #6726CA #884EDE

Accessibility & contrast

On white

10.93
#4D1C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4D1C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C96
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C96#FFFFFF#000000##FFFFFF
##4D1C961.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#373F59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d1c96;
/* rgb */ color: rgb(77, 28, 150);
/* oklch */ color: oklch(38.1% 0.180 294.1);
Tailwind
colors: {
  custom: {
    50: '#875fb6',
    500: '#4d1c96',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c96;
$custom-light: #875fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c96",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 264.098,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38074,
    "c": 0.18037,
    "h": 294.1
  },
  "luminance": 0.0461
}

Semantic roles & 50–950 ramp

primary
#4D1C96
secondary
#92C14D
accent
#EB3CA5
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1C96

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

Preview Lab → · Contrast checker → · Palette generator →

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