#4D1E7F#4D1E7F

#4D1E7F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.153 H 301.0°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4D1E7F
RGBrgb(77, 30, 127)
HSLhsl(269, 62%, 31%)
HSVhsv(269, 76%, 50%)
CMYKcmyk(39.4%, 76.4%, 0%, 50.2%)
CIE-LABlab(23.80, 41.52, -45.95)
CIE-LCHlch(23.80, 61.93, 312.10°)
OKLaboklab(36.17% 0.0787 -0.1311)
OKLCHoklch(36.17% 0.153 301)
XYZxyz(7.3547, 4.0386, 20.4666)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E7F #507F1E
analogous
#1E207F #4D1E7F #7D1E7F
triadic
#4D1E7F #7F4D1E #1E7F4D
tetradic
#4D1E7F #7F1E20 #507F1E #1E7F7D
square
#4D1E7F #7F1E20 #507F1E #1E7F7D
split-complementary
#4D1E7F #7F7D1E #207F1E
monochromatic
#11071C #2F124D #4D1E7F #6B2AB1 #8944D3

Accessibility & contrast

On white

11.62
#4D1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E7F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E7F#FFFFFF#000000##FFFFFF
##4D1E7F1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#42374D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1e7f;
/* rgb */ color: rgb(77, 30, 127);
/* oklch */ color: oklch(36.2% 0.153 301.0);
Tailwind
colors: {
  custom: {
    50: '#845fa5',
    500: '#4d1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e7f;
$custom-light: #845fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e7f",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 269.072,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36173,
    "c": 0.15293,
    "h": 301
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#4D1E7F
secondary
#7EB247
accent
#E54396
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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