#4D1B9E#4D1B9E

#4D1B9E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.190 H 292.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4D1B9E
RGBrgb(77, 27, 158)
HSLhsl(263, 71%, 36%)
HSVhsv(263, 83%, 62%)
CMYKcmyk(51.3%, 82.9%, 0%, 38%)
CIE-LABlab(26.24, 50.94, -61.19)
CIE-LCHlch(26.24, 79.62, 309.78°)
OKLaboklab(38.76% 0.0717 -0.1758)
OKLCHoklch(38.76% 0.19 292.2)
XYZxyz(9.6223, 4.8299, 32.7664)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B9E #6C9E1B
analogous
#1B2A9E #4D1B9E #8F1B9E
triadic
#4D1B9E #9E4D1B #1B9E4D
tetradic
#4D1B9E #9E1B2A #6C9E1B #1B9E8F
square
#4D1B9E #9E1B2A #6C9E1B #1B9E8F
split-complementary
#4D1B9E #9E8F1B #2A9E1B
monochromatic
#1A0935 #34126A #4D1B9E #6624D2 #8952E1

Accessibility & contrast

On white

10.68
#4D1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4D1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B9E
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B9E#FFFFFF#000000##FFFFFF
##4D1B9E1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#31425E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d1b9e;
/* rgb */ color: rgb(77, 27, 158);
/* oklch */ color: oklch(38.8% 0.190 292.2);
Tailwind
colors: {
  custom: {
    50: '#885fbc',
    500: '#4d1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b9e;
$custom-light: #885fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b9e",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 262.901,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38763,
    "c": 0.18987,
    "h": 292.2
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#4D1B9E
secondary
#98C451
accent
#EE3AA9
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4D1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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