#4D1A97#4D1A97

#4D1A97 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.183 H 294.1°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4D1A97
RGBrgb(77, 26, 151)
HSLhsl(264, 71%, 35%)
HSVhsv(264, 83%, 59%)
CMYKcmyk(49%, 82.8%, 0%, 40.8%)
CIE-LABlab(25.41, 49.51, -58.27)
CIE-LCHlch(25.41, 76.46, 310.35°)
OKLaboklab(37.98% 0.0749 -0.1672)
OKLCHoklch(37.98% 0.183 294.1)
XYZxyz(9.0143, 4.5507, 29.6756)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A97 #64971A
analogous
#1A2697 #4D1A97 #8C1A97
triadic
#4D1A97 #974D1A #1A974D
tetradic
#4D1A97 #971A26 #64971A #1A978C
square
#4D1A97 #971A26 #64971A #1A978C
split-complementary
#4D1A97 #978C1A #26971A
monochromatic
#18082F #321163 #4D1A97 #6823CB #884BE0

Accessibility & contrast

On white

10.99
#4D1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1A97
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A97#FFFFFF#000000##FFFFFF
##4D1A971.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#363F5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d1a97;
/* rgb */ color: rgb(77, 26, 151);
/* oklch */ color: oklch(38.0% 0.183 294.1);
Tailwind
colors: {
  custom: {
    50: '#875eb7',
    500: '#4d1a97',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a97;
$custom-light: #875eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a97",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 264.48,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3798,
    "c": 0.18323,
    "h": 294.1
  },
  "luminance": 0.04551
}

Semantic roles & 50–950 ramp

primary
#4D1A97
secondary
#91C24B
accent
#ED3AA4
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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