#4D1C97#4D1C97

#4D1C97 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.181 H 293.9°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#4D1C97
RGBrgb(77, 28, 151)
HSLhsl(264, 69%, 35%)
HSVhsv(264, 81%, 59%)
CMYKcmyk(49%, 81.5%, 0%, 40.8%)
CIE-LABlab(25.69, 48.70, -57.81)
CIE-LCHlch(25.69, 75.59, 310.11°)
OKLaboklab(38.17% 0.0735 -0.1659)
OKLCHoklch(38.17% 0.181 293.9)
XYZxyz(9.0602, 4.6424, 29.6909)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C97 #66971C
analogous
#1C2997 #4D1C97 #8A1C97
triadic
#4D1C97 #974D1C #1C974D
tetradic
#4D1C97 #971C29 #66971C #1C978A
square
#4D1C97 #971C29 #66971C #1C978A
split-complementary
#4D1C97 #978A1C #29971C
monochromatic
#180930 #331263 #4D1C97 #6726CB #884FDE

Accessibility & contrast

On white

10.89
#4D1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4D1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C97
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C97#FFFFFF#000000##FFFFFF
##4D1C971.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#36405A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d1c97;
/* rgb */ color: rgb(77, 28, 151);
/* oklch */ color: oklch(38.2% 0.181 293.9);
Tailwind
colors: {
  custom: {
    50: '#875fb7',
    500: '#4d1c97',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c97;
$custom-light: #875fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c97",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 263.902,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38171,
    "c": 0.18146,
    "h": 293.9
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#4D1C97
secondary
#93C14E
accent
#EC3CA6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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