#4D1A7B#4D1A7B

#4D1A7B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.153 H 303.1°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#4D1A7B
RGBrgb(77, 26, 123)
HSLhsl(272, 65%, 29%)
HSVhsv(272, 79%, 48%)
CMYKcmyk(37.4%, 78.9%, 0%, 51.8%)
CIE-LABlab(22.82, 42.32, -45.01)
CIE-LCHlch(22.82, 61.78, 313.23°)
OKLaboklab(35.37% 0.0835 -0.1284)
OKLCHoklch(35.37% 0.153 303.1)
XYZxyz(7.0043, 3.7466, 19.0892)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A7B #487B1A
analogous
#1C1A7B #4D1A7B #7B1A79
triadic
#4D1A7B #7B4D1A #1A7B4D
tetradic
#4D1A7B #7B1C1A #487B1A #1A797B
square
#4D1A7B #7B1C1A #487B1A #1A797B
split-complementary
#4D1A7B #797B1A #1A7B1C
monochromatic
#100519 #2D0F48 #4D1A7B #6D25AE #8C3AD5

Accessibility & contrast

On white

12.00
#4D1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A7B
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A7B#FFFFFF#000000##FFFFFF
##4D1A7B1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#44334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1a7b;
/* rgb */ color: rgb(77, 26, 123);
/* oklch */ color: oklch(35.4% 0.153 303.1);
Tailwind
colors: {
  custom: {
    50: '#845da2',
    500: '#4d1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a7b;
$custom-light: #845da2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a7b",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 271.546,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35374,
    "c": 0.15315,
    "h": 303.1
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#4D1A7B
secondary
#76AF42
accent
#E84090
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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