#4D1A7C#4D1A7C

#4D1A7C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.154 H 302.7°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#4D1A7C
RGBrgb(77, 26, 124)
HSLhsl(271, 65%, 29%)
HSVhsv(271, 79%, 49%)
CMYKcmyk(37.9%, 79%, 0%, 51.4%)
CIE-LABlab(22.90, 42.57, -45.51)
CIE-LCHlch(22.90, 62.32, 313.09°)
OKLaboklab(35.46% 0.0833 -0.1298)
OKLCHoklch(35.46% 0.154 302.7)
XYZxyz(7.0672, 3.7718, 19.4206)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A7C #497C1A
analogous
#1C1A7C #4D1A7C #7C1A7A
triadic
#4D1A7C #7C4D1A #1A7C4D
tetradic
#4D1A7C #7C1C1A #497C1A #1A7A7C
square
#4D1A7C #7C1C1A #497C1A #1A7A7C
split-complementary
#4D1A7C #7A7C1A #1A7C1C
monochromatic
#100519 #2E0F49 #4D1A7C #6C25AF #8B3BD6

Accessibility & contrast

On white

11.97
#4D1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A7C
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A7C#FFFFFF#000000##FFFFFF
##4D1A7C1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#43334A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1a7c;
/* rgb */ color: rgb(77, 26, 124);
/* oklch */ color: oklch(35.5% 0.154 302.7);
Tailwind
colors: {
  custom: {
    50: '#845da3',
    500: '#4d1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a7c;
$custom-light: #845da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a7c",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 271.224,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35461,
    "c": 0.15422,
    "h": 302.7
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#4D1A7C
secondary
#77B042
accent
#E84090
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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