#4D1979#4D1979

#4D1979 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.152 H 304.0°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#4D1979
RGBrgb(77, 25, 121)
HSLhsl(273, 66%, 29%)
HSVhsv(273, 79%, 47%)
CMYKcmyk(36.4%, 79.3%, 0%, 52.5%)
CIE-LABlab(22.49, 42.25, -44.27)
CIE-LCHlch(22.49, 61.20, 313.67°)
OKLaboklab(35.09% 0.085 -0.1262)
OKLCHoklch(35.09% 0.152 304)
XYZxyz(6.8586, 3.6535, 18.4293)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1979 #457919
analogous
#1D1979 #4D1979 #791975
triadic
#4D1979 #794D19 #19794D
tetradic
#4D1979 #791D19 #457919 #197579
square
#4D1979 #791D19 #457919 #197579
split-complementary
#4D1979 #757919 #19791D
monochromatic
#100519 #2D0F46 #4D1979 #6D23AC #8D37D6

Accessibility & contrast

On white

12.13
#4D1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4D1979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1979
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1979#FFFFFF#000000##FFFFFF
##4D19791.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#443248
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1979;
/* rgb */ color: rgb(77, 25, 121);
/* oklch */ color: oklch(35.1% 0.152 304.0);
Tailwind
colors: {
  custom: {
    50: '#845ca0',
    500: '#4d1979',
    950: '#000000',
  },
}
SCSS
$custom: #4d1979;
$custom-light: #845ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1979",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 272.5,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35092,
    "c": 0.15211,
    "h": 304
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#4D1979
secondary
#72AE40
accent
#E93F8D
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1979

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

Preview Lab → · Contrast checker → · Palette generator →

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