#4D1D7B#4D1D7B

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

Color values

HEX#4D1D7B
RGBrgb(77, 29, 123)
HSLhsl(271, 62%, 30%)
HSVhsv(271, 76%, 48%)
CMYKcmyk(37.4%, 76.4%, 0%, 51.8%)
CIE-LABlab(23.29, 40.95, -44.24)
CIE-LCHlch(23.29, 60.28, 312.79°)
OKLaboklab(35.71% 0.0806 -0.1261)
OKLCHoklch(35.71% 0.15 302.6)
XYZxyz(7.0742, 3.8866, 19.1125)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D7B #4B7B1D
analogous
#1E1D7B #4D1D7B #7B1D7A
triadic
#4D1D7B #7B4D1D #1D7B4D
tetradic
#4D1D7B #7B1E1D #4B7B1D #1D7A7B
square
#4D1D7B #7B1E1D #4B7B1D #1D7A7B
split-complementary
#4D1D7B #7A7B1D #1D7B1E
monochromatic
#100619 #2E1149 #4D1D7B #6C29AD #8B40D2

Accessibility & contrast

On white

11.82
#4D1D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1D7B
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D7B#FFFFFF#000000##FFFFFF
##4D1D7B1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1d7b;
/* rgb */ color: rgb(77, 29, 123);
/* oklch */ color: oklch(35.7% 0.150 302.6);
Tailwind
colors: {
  custom: {
    50: '#845ea2',
    500: '#4d1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d7b;
$custom-light: #845ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d7b",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 270.638,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3571,
    "c": 0.14966,
    "h": 302.6
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#4D1D7B
secondary
#79AF45
accent
#E54392
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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