#4D1977#4D1977

#4D1977 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.150 H 304.7°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#4D1977
RGBrgb(77, 25, 119)
HSLhsl(273, 65%, 28%)
HSVhsv(273, 79%, 47%)
CMYKcmyk(35.3%, 79%, 0%, 53.3%)
CIE-LABlab(22.32, 41.75, -43.27)
CIE-LCHlch(22.32, 60.13, 313.98°)
OKLaboklab(34.92% 0.0855 -0.1232)
OKLCHoklch(34.92% 0.15 304.7)
XYZxyz(6.7372, 3.6050, 17.7901)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1977 #437719
analogous
#1E1977 #4D1977 #771972
triadic
#4D1977 #774D19 #19774D
tetradic
#4D1977 #771E19 #437719 #197277
square
#4D1977 #771E19 #437719 #197277
split-complementary
#4D1977 #727719 #19771E
monochromatic
#100519 #2C0E44 #4D1977 #6E24AA #8E36D5

Accessibility & contrast

On white

12.20
#4D1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4D1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1977
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1977#FFFFFF#000000##FFFFFF
##4D19771.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003575
Tritanopia (blue-blind)
#453147
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1977;
/* rgb */ color: rgb(77, 25, 119);
/* oklch */ color: oklch(34.9% 0.150 304.7);
Tailwind
colors: {
  custom: {
    50: '#835c9f',
    500: '#4d1977',
    950: '#000000',
  },
}
SCSS
$custom: #4d1977;
$custom-light: #835c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1977",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 273.191,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34919,
    "c": 0.14996,
    "h": 304.7
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#4D1977
secondary
#70AC40
accent
#E8408B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1977

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

Preview Lab → · Contrast checker → · Palette generator →

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