#4D1E7A#4D1E7A

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

Color values

HEX#4D1E7A
RGBrgb(77, 30, 122)
HSLhsl(271, 61%, 30%)
HSVhsv(271, 75%, 48%)
CMYKcmyk(36.9%, 75.4%, 0%, 52.2%)
CIE-LABlab(23.38, 40.22, -43.46)
CIE-LCHlch(23.38, 59.22, 312.78°)
OKLaboklab(35.74% 0.0798 -0.1238)
OKLCHoklch(35.74% 0.147 302.8)
XYZxyz(7.0369, 3.9115, 18.7928)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E7A #4B7A1E
analogous
#1F1E7A #4D1E7A #7A1E79
triadic
#4D1E7A #7A4D1E #1E7A4D
tetradic
#4D1E7A #7A1F1E #4B7A1E #1E797A
square
#4D1E7A #7A1F1E #4B7A1E #1E797A
split-complementary
#4D1E7A #797A1E #1E7A1F
monochromatic
#100619 #2E1249 #4D1E7A #6C2AAB #8B42D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D1E7A#FFFFFF#000000##FFFFFF
##4D1E7A1.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)
#00377D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#44354A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1e7a;
/* rgb */ color: rgb(77, 30, 122);
/* oklch */ color: oklch(35.7% 0.147 302.8);
Tailwind
colors: {
  custom: {
    50: '#835fa1',
    500: '#4d1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e7a;
$custom-light: #835fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e7a",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 270.652,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35743,
    "c": 0.14732,
    "h": 302.8
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#4D1E7A
secondary
#79AE46
accent
#E44492
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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