#4D1B8E#4D1B8E

#4D1B8E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.173 H 296.5°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#4D1B8E
RGBrgb(77, 27, 142)
HSLhsl(266, 68%, 33%)
HSVhsv(266, 81%, 56%)
CMYKcmyk(45.8%, 81%, 0%, 44.3%)
CIE-LABlab(24.68, 46.76, -53.90)
CIE-LCHlch(24.68, 71.36, 310.94°)
OKLaboklab(37.21% 0.0772 -0.1545)
OKLCHoklch(37.21% 0.173 296.5)
XYZxyz(8.3337, 4.3145, 25.9796)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B8E #5C8E1B
analogous
#1B228E #4D1B8E #861B8E
triadic
#4D1B8E #8E4D1B #1B8E4D
tetradic
#4D1B8E #8E1B22 #5C8E1B #1B8E86
square
#4D1B8E #8E1B22 #5C8E1B #1B8E86
split-complementary
#4D1B8E #8E861B #228E1B
monochromatic
#150727 #31115B #4D1B8E #6925C1 #8847DC

Accessibility & contrast

On white

11.27
#4D1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4D1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B8E
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B8E#FFFFFF#000000##FFFFFF
##4D1B8E1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#3B3B55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1b8e;
/* rgb */ color: rgb(77, 27, 142);
/* oklch */ color: oklch(37.2% 0.173 296.5);
Tailwind
colors: {
  custom: {
    50: '#865eb0',
    500: '#4d1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b8e;
$custom-light: #865eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b8e",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 266.087,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3721,
    "c": 0.17266,
    "h": 296.5
  },
  "luminance": 0.04315
}

Semantic roles & 50–950 ramp

primary
#4D1B8E
secondary
#8ABE47
accent
#EB3D9F
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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