#4D1C94#4D1C94

#4D1C94 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.178 H 294.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4D1C94
RGBrgb(77, 28, 148)
HSLhsl(265, 68%, 35%)
HSVhsv(265, 81%, 58%)
CMYKcmyk(48%, 81.1%, 0%, 42%)
CIE-LABlab(25.40, 47.91, -56.44)
CIE-LCHlch(25.40, 74.04, 310.33°)
OKLaboklab(37.88% 0.0745 -0.1619)
OKLCHoklch(37.88% 0.178 294.7)
XYZxyz(8.8197, 4.5462, 28.4240)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C94 #63941C
analogous
#1C2794 #4D1C94 #891C94
triadic
#4D1C94 #944D1C #1C944D
tetradic
#4D1C94 #941C27 #63941C #1C9489
square
#4D1C94 #941C27 #63941C #1C9489
split-complementary
#4D1C94 #94891C #27941C
monochromatic
#17092D #321261 #4D1C94 #6826C7 #884DDD

Accessibility & contrast

On white

11.00
#4D1C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D1C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C94
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C94#FFFFFF#000000##FFFFFF
##4D1C941.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003A92
Tritanopia (blue-blind)
#383E58
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d1c94;
/* rgb */ color: rgb(77, 28, 148);
/* oklch */ color: oklch(37.9% 0.178 294.7);
Tailwind
colors: {
  custom: {
    50: '#875fb4',
    500: '#4d1c94',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c94;
$custom-light: #875fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c94",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 264.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37882,
    "c": 0.17821,
    "h": 294.7
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

primary
#4D1C94
secondary
#90C04C
accent
#EB3DA4
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1C94

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

Preview Lab → · Contrast checker → · Palette generator →

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