#4D1C82#4D1C82

#4D1C82 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.159 H 300.2°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4D1C82
RGBrgb(77, 28, 130)
HSLhsl(269, 65%, 31%)
HSVhsv(269, 78%, 51%)
CMYKcmyk(40.8%, 78.5%, 0%, 49%)
CIE-LABlab(23.74, 43.22, -47.94)
CIE-LCHlch(23.74, 64.55, 312.03°)
OKLaboklab(36.21% 0.0799 -0.137)
OKLCHoklch(36.21% 0.159 300.2)
XYZxyz(7.5041, 4.0199, 21.4953)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C82 #51821C
analogous
#1C1E82 #4D1C82 #801C82
triadic
#4D1C82 #824D1C #1C824D
tetradic
#4D1C82 #821C1E #51821C #1C8280
square
#4D1C82 #821C1E #51821C #1C8280
split-complementary
#4D1C82 #82801C #1E821C
monochromatic
#11061D #2F1150 #4D1C82 #6B27B4 #8942D6

Accessibility & contrast

On white

11.64
#4D1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D1C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C82
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C82#FFFFFF#000000##FFFFFF
##4D1C821.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#41374E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1c82;
/* rgb */ color: rgb(77, 28, 130);
/* oklch */ color: oklch(36.2% 0.159 300.2);
Tailwind
colors: {
  custom: {
    50: '#845ea7',
    500: '#4d1c82',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c82;
$custom-light: #845ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c82",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 268.824,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36211,
    "c": 0.15855,
    "h": 300.2
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#4D1C82
secondary
#7FB544
accent
#E84097
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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