#4D1E72#4D1E72

#4D1E72 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.138 H 306.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4D1E72
RGBrgb(77, 30, 114)
HSLhsl(274, 58%, 28%)
HSVhsv(274, 74%, 45%)
CMYKcmyk(32.5%, 73.7%, 0%, 55.3%)
CIE-LABlab(22.73, 38.18, -39.40)
CIE-LCHlch(22.73, 54.86, 314.10°)
OKLaboklab(35.08% 0.0813 -0.1119)
OKLCHoklch(35.08% 0.138 306)
XYZxyz(6.5614, 3.7213, 16.2889)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E72 #43721E
analogous
#231E72 #4D1E72 #721E6D
triadic
#4D1E72 #724D1E #1E724D
tetradic
#4D1E72 #72231E #43721E #1E6D72
square
#4D1E72 #72231E #43721E #1E6D72
split-complementary
#4D1E72 #6D721E #1E7223
monochromatic
#100618 #2C1142 #4D1E72 #6E2BA2 #8E3ECC

Accessibility & contrast

On white

12.04
#4D1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D1E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E72
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E72#FFFFFF#000000##FFFFFF
##4D1E721.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#463146
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1e72;
/* rgb */ color: rgb(77, 30, 114);
/* oklch */ color: oklch(35.1% 0.138 306.0);
Tailwind
colors: {
  custom: {
    50: '#835e9b',
    500: '#4d1e72',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e72;
$custom-light: #835e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e72",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 273.571,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35078,
    "c": 0.13829,
    "h": 306
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#4D1E72
secondary
#70A646
accent
#E2468B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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