#4D1C84#4D1C84

#4D1C84 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.161 H 299.6°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4D1C84
RGBrgb(77, 28, 132)
HSLhsl(268, 65%, 31%)
HSVhsv(268, 79%, 52%)
CMYKcmyk(41.7%, 78.8%, 0%, 48.2%)
CIE-LABlab(23.91, 43.73, -48.91)
CIE-LCHlch(23.91, 65.61, 311.80°)
OKLaboklab(36.39% 0.0793 -0.1398)
OKLCHoklch(36.39% 0.161 299.6)
XYZxyz(7.6396, 4.0741, 22.2092)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C84 #53841C
analogous
#1C1F84 #4D1C84 #811C84
triadic
#4D1C84 #844D1C #1C844D
tetradic
#4D1C84 #841C1F #53841C #1C8481
square
#4D1C84 #841C1F #53841C #1C8481
split-complementary
#4D1C84 #84811C #1F841C
monochromatic
#12071F #301152 #4D1C84 #6A27B6 #8943D7

Accessibility & contrast

On white

11.57
#4D1C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D1C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C84
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C84#FFFFFF#000000##FFFFFF
##4D1C841.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#40384F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1c84;
/* rgb */ color: rgb(77, 28, 132);
/* oklch */ color: oklch(36.4% 0.161 299.6);
Tailwind
colors: {
  custom: {
    50: '#855ea9',
    500: '#4d1c84',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c84;
$custom-light: #855ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c84",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 268.269,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3639,
    "c": 0.16074,
    "h": 299.6
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#4D1C84
secondary
#81B745
accent
#E84099
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1C84

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

Preview Lab → · Contrast checker → · Palette generator →

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