#4D1C7D#4D1C7D

#4D1C7D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.153 H 302.0°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4D1C7D
RGBrgb(77, 28, 125)
HSLhsl(270, 63%, 30%)
HSVhsv(270, 78%, 49%)
CMYKcmyk(38.4%, 77.6%, 0%, 51%)
CIE-LABlab(23.30, 41.93, -45.49)
CIE-LCHlch(23.30, 61.87, 312.67°)
OKLaboklab(35.77% 0.0811 -0.1298)
OKLCHoklch(35.77% 0.153 302)
XYZxyz(7.1766, 3.8889, 19.7706)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C7D #4C7D1C
analogous
#1C1C7D #4D1C7D #7D1C7D
triadic
#4D1C7D #7D4D1C #1C7D4D
tetradic
#4D1C7D #7D1C1C #4C7D1C #1C7D7D
square
#4D1C7D #7D1C1C #4C7D1C #1C7D7D
split-complementary
#4D1C7D #7D7D1C #1C7D1C
monochromatic
#0F0619 #2E114B #4D1C7D #6C27AF #8A3FD4

Accessibility & contrast

On white

11.81
#4D1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4D1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C7D
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C7D#FFFFFF#000000##FFFFFF
##4D1C7D1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#43354B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1c7d;
/* rgb */ color: rgb(77, 28, 125);
/* oklch */ color: oklch(35.8% 0.153 302.0);
Tailwind
colors: {
  custom: {
    50: '#845ea3',
    500: '#4d1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c7d;
$custom-light: #845ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c7d",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 270.309,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.35768,
    "c": 0.15305,
    "h": 302
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#4D1C7D
secondary
#7AB144
accent
#E64193
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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