#4D1C7B#4D1C7B

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

Color values

HEX#4D1C7B
RGBrgb(77, 28, 123)
HSLhsl(271, 63%, 30%)
HSVhsv(271, 77%, 48%)
CMYKcmyk(37.4%, 77.2%, 0%, 51.8%)
CIE-LABlab(23.13, 41.42, -44.50)
CIE-LCHlch(23.13, 60.80, 312.95°)
OKLaboklab(35.6% 0.0816 -0.1269)
OKLCHoklch(35.6% 0.151 302.7)
XYZxyz(7.0501, 3.8383, 19.1045)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C7B #4A7B1C
analogous
#1D1C7B #4D1C7B #7B1C7A
triadic
#4D1C7B #7B4D1C #1C7B4D
tetradic
#4D1C7B #7B1D1C #4A7B1C #1C7A7B
square
#4D1C7B #7B1D1C #4A7B1C #1C7A7B
split-complementary
#4D1C7B #7A7B1C #1C7B1D
monochromatic
#100619 #2E1149 #4D1C7B #6C27AD #8B3ED3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D1C7B#FFFFFF#000000##FFFFFF
##4D1C7B1.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)
#00367E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#43344A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1c7b;
/* rgb */ color: rgb(77, 28, 123);
/* oklch */ color: oklch(35.6% 0.151 302.7);
Tailwind
colors: {
  custom: {
    50: '#845ea2',
    500: '#4d1c7b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c7b;
$custom-light: #845ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c7b",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 270.947,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35595,
    "c": 0.15085,
    "h": 302.7
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#4D1C7B
secondary
#78AF44
accent
#E64291
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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