#4D1B7E#4D1B7E

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

Color values

HEX#4D1B7E
RGBrgb(77, 27, 126)
HSLhsl(270, 65%, 30%)
HSVhsv(270, 79%, 49%)
CMYKcmyk(38.9%, 78.6%, 0%, 50.6%)
CIE-LABlab(23.23, 42.64, -46.24)
CIE-LCHlch(23.23, 62.90, 312.68°)
OKLaboklab(35.75% 0.0818 -0.132)
OKLCHoklch(35.75% 0.155 301.8)
XYZxyz(7.2175, 3.8680, 20.1010)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B7E #4C7E1B
analogous
#1B1B7E #4D1B7E #7E1B7E
triadic
#4D1B7E #7E4D1B #1B7E4D
tetradic
#4D1B7E #7E1B1B #4C7E1B #1B7E7E
square
#4D1B7E #7E1B1B #4C7E1B #1B7E7E
split-complementary
#4D1B7E #7E7E1B #1B7E1B
monochromatic
#0F0519 #2E104C #4D1B7E #6C26B0 #8A3ED6

Accessibility & contrast

On white

11.84
#4D1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1B7E
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B7E#FFFFFF#000000##FFFFFF
##4D1B7E1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#42354C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1b7e;
/* rgb */ color: rgb(77, 27, 126);
/* oklch */ color: oklch(35.7% 0.155 301.8);
Tailwind
colors: {
  custom: {
    50: '#845da4',
    500: '#4d1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b7e;
$custom-light: #845da4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b7e",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 270.303,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.35746,
    "c": 0.15528,
    "h": 301.8
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#4D1B7E
secondary
#7AB243
accent
#E84093
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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