#4D1779#4D1779

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

Color values

HEX#4D1779
RGBrgb(77, 23, 121)
HSLhsl(273, 68%, 28%)
HSVhsv(273, 81%, 47%)
CMYKcmyk(36.4%, 81%, 0%, 52.5%)
CIE-LABlab(22.20, 43.09, -44.74)
CIE-LCHlch(22.20, 62.12, 313.92°)
OKLaboklab(34.89% 0.0868 -0.1275)
OKLCHoklch(34.89% 0.154 304.2)
XYZxyz(6.8174, 3.5711, 18.4156)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1779 #437917
analogous
#1C1779 #4D1779 #791774
triadic
#4D1779 #794D17 #17794D
tetradic
#4D1779 #791C17 #437917 #177479
square
#4D1779 #791C17 #437917 #177479
split-complementary
#4D1779 #747917 #17791C
monochromatic
#10051A #2C0D46 #4D1779 #6E21AC #8E32D8

Accessibility & contrast

On white

12.25
#4D1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4D1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1779
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1779#FFFFFF#000000##FFFFFF
##4D17791.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#443148
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d1779;
/* rgb */ color: rgb(77, 23, 121);
/* oklch */ color: oklch(34.9% 0.154 304.2);
Tailwind
colors: {
  custom: {
    50: '#845ba0',
    500: '#4d1779',
    950: '#000000',
  },
}
SCSS
$custom: #4d1779;
$custom-light: #845ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1779",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 273.061,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34888,
    "c": 0.15427,
    "h": 304.2
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#4D1779
secondary
#70AE3E
accent
#EB3D8B
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1779

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

Preview Lab → · Contrast checker → · Palette generator →

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