#4D1F79#4D1F79

#4D1F79 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.145 H 303.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#4D1F79
RGBrgb(77, 31, 121)
HSLhsl(271, 59%, 30%)
HSVhsv(271, 74%, 47%)
CMYKcmyk(36.4%, 74.4%, 0%, 52.5%)
CIE-LABlab(23.47, 39.48, -42.68)
CIE-LCHlch(23.47, 58.14, 312.77°)
OKLaboklab(35.78% 0.0789 -0.1215)
OKLCHoklch(35.78% 0.145 303)
XYZxyz(7.0009, 3.9382, 18.4768)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1F79 #4B791F
analogous
#201F79 #4D1F79 #791F78
triadic
#4D1F79 #794D1F #1F794D
tetradic
#4D1F79 #79201F #4B791F #1F7879
square
#4D1F79 #79201F #4B791F #1F7879
split-complementary
#4D1F79 #78791F #1F7920
monochromatic
#100618 #2E1348 #4D1F79 #6C2BAA #8B43CF

Accessibility & contrast

On white

11.75
#4D1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4D1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1F79
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1F79#FFFFFF#000000##FFFFFF
##4D1F791.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#44354A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1f79;
/* rgb */ color: rgb(77, 31, 121);
/* oklch */ color: oklch(35.8% 0.145 303.0);
Tailwind
colors: {
  custom: {
    50: '#835fa0',
    500: '#4d1f79',
    950: '#000000',
  },
}
SCSS
$custom: #4d1f79;
$custom-light: #835fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1f79",
  "rgb": {
    "r": 77,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 270.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3578,
    "c": 0.14493,
    "h": 303
  },
  "luminance": 0.03938
}

Semantic roles & 50–950 ramp

primary
#4D1F79
secondary
#79AC47
accent
#E24592
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4D1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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