#4D1E8C#4D1E8C

#4D1E8C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.167 H 296.7°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#4D1E8C
RGBrgb(77, 30, 140)
HSLhsl(266, 65%, 33%)
HSVhsv(266, 79%, 55%)
CMYKcmyk(45%, 78.6%, 0%, 45.1%)
CIE-LABlab(24.95, 44.93, -52.22)
CIE-LCHlch(24.95, 68.89, 310.71°)
OKLaboklab(37.34% 0.0753 -0.1495)
OKLCHoklch(37.34% 0.167 296.7)
XYZxyz(8.2572, 4.3996, 25.2200)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E8C #5D8C1E
analogous
#1E268C #4D1E8C #841E8C
triadic
#4D1E8C #8C4D1E #1E8C4D
tetradic
#4D1E8C #8C1E26 #5D8C1E #1E8C84
square
#4D1E8C #8C1E26 #5D8C1E #1E8C84
split-complementary
#4D1E8C #8C841E #268C1E
monochromatic
#160827 #31135A #4D1E8C #6929BE #884CD9

Accessibility & contrast

On white

11.17
#4D1E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4D1E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E8C
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E8C#FFFFFF#000000##FFFFFF
##4D1E8C1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#3C3C54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1e8c;
/* rgb */ color: rgb(77, 30, 140);
/* oklch */ color: oklch(37.3% 0.167 296.7);
Tailwind
colors: {
  custom: {
    50: '#855faf',
    500: '#4d1e8c',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e8c;
$custom-light: #855faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e8c",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 265.636,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37339,
    "c": 0.16744,
    "h": 296.7
  },
  "luminance": 0.044
}

Semantic roles & 50–950 ramp

primary
#4D1E8C
secondary
#8BBB4B
accent
#E840A0
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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