#4D1D7C#4D1D7C

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

Color values

HEX#4D1D7C
RGBrgb(77, 29, 124)
HSLhsl(270, 62%, 30%)
HSVhsv(270, 77%, 49%)
CMYKcmyk(37.9%, 76.6%, 0%, 51.4%)
CIE-LABlab(23.38, 41.21, -44.73)
CIE-LCHlch(23.38, 60.83, 312.65°)
OKLaboklab(35.8% 0.0804 -0.1276)
OKLCHoklch(35.8% 0.151 302.2)
XYZxyz(7.1372, 3.9117, 19.4439)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D7C #4C7C1D
analogous
#1D1D7C #4D1D7C #7C1D7C
triadic
#4D1D7C #7C4D1D #1D7C4D
tetradic
#4D1D7C #7C1D1D #4C7C1D #1D7C7C
square
#4D1D7C #7C1D1D #4C7C1D #1D7C7C
split-complementary
#4D1D7C #7C7C1D #1D7C1D
monochromatic
#0F0619 #2E114A #4D1D7C #6C29AE #8A41D3

Accessibility & contrast

On white

11.78
#4D1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1D7C
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D7C#FFFFFF#000000##FFFFFF
##4D1D7C1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1d7c;
/* rgb */ color: rgb(77, 29, 124);
/* oklch */ color: oklch(35.8% 0.151 302.2);
Tailwind
colors: {
  custom: {
    50: '#845ea3',
    500: '#4d1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d7c;
$custom-light: #845ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d7c",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 270.316,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.35796,
    "c": 0.15077,
    "h": 302.2
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#4D1D7C
secondary
#7AB045
accent
#E54393
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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