#4D1B7C#4D1B7C

#4D1B7C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.153 H 302.5°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4D1B7C
RGBrgb(77, 27, 124)
HSLhsl(271, 64%, 30%)
HSVhsv(271, 78%, 49%)
CMYKcmyk(37.9%, 78.2%, 0%, 51.4%)
CIE-LABlab(23.06, 42.13, -45.26)
CIE-LCHlch(23.06, 61.83, 312.95°)
OKLaboklab(35.57% 0.0823 -0.1291)
OKLCHoklch(35.57% 0.153 302.5)
XYZxyz(7.0897, 3.8169, 19.4281)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B7C #4A7C1B
analogous
#1D1B7C #4D1B7C #7C1B7B
triadic
#4D1B7C #7C4D1B #1B7C4D
tetradic
#4D1B7C #7C1D1B #4A7C1B #1B7B7C
square
#4D1B7C #7C1D1B #4A7C1B #1B7B7C
split-complementary
#4D1B7C #7B7C1B #1B7C1D
monochromatic
#100519 #2E104A #4D1B7C #6C26AE #8B3DD5

Accessibility & contrast

On white

11.91
#4D1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4D1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B7C
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B7C#FFFFFF#000000##FFFFFF
##4D1B7C1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#43344A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1b7c;
/* rgb */ color: rgb(77, 27, 124);
/* oklch */ color: oklch(35.6% 0.153 302.5);
Tailwind
colors: {
  custom: {
    50: '#845da3',
    500: '#4d1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b7c;
$custom-light: #845da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b7c",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 270.928,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3557,
    "c": 0.1531,
    "h": 302.5
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#4D1B7C
secondary
#78B043
accent
#E74191
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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