#4D1F7D#4D1F7D

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

Color values

HEX#4D1F7D
RGBrgb(77, 31, 125)
HSLhsl(269, 60%, 31%)
HSVhsv(269, 75%, 49%)
CMYKcmyk(38.4%, 75.2%, 0%, 51%)
CIE-LABlab(23.80, 40.52, -44.68)
CIE-LCHlch(23.80, 60.32, 312.20°)
OKLaboklab(36.12% 0.0781 -0.1274)
OKLCHoklch(36.12% 0.149 301.5)
XYZxyz(7.2513, 4.0384, 19.7955)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F7D #4F7D1F
analogous
#1F207D #4D1F7D #7C1F7D
triadic
#4D1F7D #7D4D1F #1F7D4D
tetradic
#4D1F7D #7D1F20 #4F7D1F #1F7D7C
square
#4D1F7D #7D1F20 #4F7D1F #1F7D7C
split-complementary
#4D1F7D #7D7C1F #207D1F
monochromatic
#11071B #2F134C #4D1F7D #6B2BAE #8A45D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D1F7D#FFFFFF#000000##FFFFFF
##4D1F7D1.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)
#003880
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#43364C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1f7d;
/* rgb */ color: rgb(77, 31, 125);
/* oklch */ color: oklch(36.1% 0.149 301.5);
Tailwind
colors: {
  custom: {
    50: '#845fa3',
    500: '#4d1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f7d;
$custom-light: #845fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f7d",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 269.362,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36119,
    "c": 0.14947,
    "h": 301.5
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#4D1F7D
secondary
#7DB048
accent
#E34496
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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