#4D1D97#4D1D97

#4D1D97 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.181 H 293.8°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#4D1D97
RGBrgb(77, 29, 151)
HSLhsl(264, 68%, 35%)
HSVhsv(264, 81%, 59%)
CMYKcmyk(49%, 80.8%, 0%, 40.8%)
CIE-LABlab(25.83, 48.29, -57.58)
CIE-LCHlch(25.83, 75.14, 309.98°)
OKLaboklab(38.27% 0.0727 -0.1652)
OKLCHoklch(38.27% 0.181 293.8)
XYZxyz(9.0843, 4.6906, 29.6989)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D97 #67971D
analogous
#1D2A97 #4D1D97 #8A1D97
triadic
#4D1D97 #974D1D #1D974D
tetradic
#4D1D97 #971D2A #67971D #1D978A
square
#4D1D97 #971D2A #67971D #1D978A
split-complementary
#4D1D97 #978A1D #2A971D
monochromatic
#190930 #331364 #4D1D97 #6727CA #8851DE

Accessibility & contrast

On white

10.83
#4D1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4D1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D97
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D97#FFFFFF#000000##FFFFFF
##4D1D971.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.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: #4d1d97;
/* rgb */ color: rgb(77, 29, 151);
/* oklch */ color: oklch(38.3% 0.181 293.8);
Tailwind
colors: {
  custom: {
    50: '#8760b7',
    500: '#4d1d97',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d97;
$custom-light: #8760b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d97",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 263.607,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38271,
    "c": 0.18055,
    "h": 293.8
  },
  "luminance": 0.04691
}

Semantic roles & 50–950 ramp

primary
#4D1D97
secondary
#94C04F
accent
#EB3DA6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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