#4D1B7D#4D1B7D

#4D1B7D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.154 H 302.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#4D1B7D
RGBrgb(77, 27, 125)
HSLhsl(271, 64%, 30%)
HSVhsv(271, 78%, 49%)
CMYKcmyk(38.4%, 78.4%, 0%, 51%)
CIE-LABlab(23.14, 42.38, -45.75)
CIE-LCHlch(23.14, 62.36, 312.81°)
OKLaboklab(35.66% 0.0821 -0.1305)
OKLCHoklch(35.66% 0.154 302.2)
XYZxyz(7.1533, 3.8423, 19.7628)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B7D #4B7D1B
analogous
#1C1B7D #4D1B7D #7D1B7C
triadic
#4D1B7D #7D4D1B #1B7D4D
tetradic
#4D1B7D #7D1C1B #4B7D1B #1B7C7D
square
#4D1B7D #7D1C1B #4B7D1B #1B7C7D
split-complementary
#4D1B7D #7C7D1B #1B7D1C
monochromatic
#100519 #2E104B #4D1B7D #6C26AF #8B3DD5

Accessibility & contrast

On white

11.88
#4D1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4D1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B7D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B7D#FFFFFF#000000##FFFFFF
##4D1B7D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#43344B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1b7d;
/* rgb */ color: rgb(77, 27, 125);
/* oklch */ color: oklch(35.7% 0.154 302.2);
Tailwind
colors: {
  custom: {
    50: '#845da3',
    500: '#4d1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b7d;
$custom-light: #845da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b7d",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 270.612,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35658,
    "c": 0.15419,
    "h": 302.2
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#4D1B7D
secondary
#79B143
accent
#E74092
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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