#4D1C7C#4D1C7C

#4D1C7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.152 H 302.4°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#4D1C7C
RGBrgb(77, 28, 124)
HSLhsl(271, 63%, 30%)
HSVhsv(271, 77%, 49%)
CMYKcmyk(37.9%, 77.4%, 0%, 51.4%)
CIE-LABlab(23.21, 41.67, -45.00)
CIE-LCHlch(23.21, 61.33, 312.80°)
OKLaboklab(35.68% 0.0814 -0.1283)
OKLCHoklch(35.68% 0.152 302.4)
XYZxyz(7.1130, 3.8635, 19.4359)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C7C #4B7C1C
analogous
#1D1C7C #4D1C7C #7C1C7B
triadic
#4D1C7C #7C4D1C #1C7C4D
tetradic
#4D1C7C #7C1D1C #4B7C1C #1C7B7C
square
#4D1C7C #7C1D1C #4B7C1C #1C7B7C
split-complementary
#4D1C7C #7B7C1C #1C7C1D
monochromatic
#100619 #2E114A #4D1C7C #6C27AE #8B3FD4

Accessibility & contrast

On white

11.85
#4D1C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4D1C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C7C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C7C#FFFFFF#000000##FFFFFF
##4D1C7C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#43344B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1c7c;
/* rgb */ color: rgb(77, 28, 124);
/* oklch */ color: oklch(35.7% 0.152 302.4);
Tailwind
colors: {
  custom: {
    50: '#845ea3',
    500: '#4d1c7c',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c7c;
$custom-light: #845ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c7c",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 270.625,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35681,
    "c": 0.15195,
    "h": 302.4
  },
  "luminance": 0.03864
}

Semantic roles & 50–950 ramp

primary
#4D1C7C
secondary
#79B044
accent
#E64292
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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