#4D1B88#4D1B88

#4D1B88 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.166 H 298.4°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4D1B88
RGBrgb(77, 27, 136)
HSLhsl(268, 67%, 32%)
HSVhsv(268, 80%, 53%)
CMYKcmyk(43.4%, 80.1%, 0%, 46.7%)
CIE-LABlab(24.13, 45.21, -51.08)
CIE-LCHlch(24.13, 68.21, 311.51°)
OKLaboklab(36.65% 0.079 -0.1462)
OKLCHoklch(36.65% 0.166 298.4)
XYZxyz(7.8953, 4.1391, 23.6707)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B88 #56881B
analogous
#1B2088 #4D1B88 #841B88
triadic
#4D1B88 #884D1B #1B884D
tetradic
#4D1B88 #881B20 #56881B #1B8884
square
#4D1B88 #881B20 #56881B #1B8884
split-complementary
#4D1B88 #88841B #20881B
monochromatic
#130722 #301155 #4D1B88 #6A25BB #8944DA

Accessibility & contrast

On white

11.49
#4D1B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D1B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B88
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B88#FFFFFF#000000##FFFFFF
##4D1B881.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003886
Tritanopia (blue-blind)
#3E3951
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1b88;
/* rgb */ color: rgb(77, 27, 136);
/* oklch */ color: oklch(36.6% 0.166 298.4);
Tailwind
colors: {
  custom: {
    50: '#855eac',
    500: '#4d1b88',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b88;
$custom-light: #855eac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b88",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 267.523,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3665,
    "c": 0.16616,
    "h": 298.4
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#4D1B88
secondary
#84BB44
accent
#EA3E9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1B88

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

Preview Lab → · Contrast checker → · Palette generator →

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