#4D1679#4D1679

#4D1679 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.155 H 304.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#4D1679
RGBrgb(77, 22, 121)
HSLhsl(273, 69%, 28%)
HSVhsv(273, 82%, 47%)
CMYKcmyk(36.4%, 81.8%, 0%, 52.5%)
CIE-LABlab(22.06, 43.49, -44.97)
CIE-LCHlch(22.06, 62.56, 314.04°)
OKLaboklab(34.79% 0.0877 -0.1282)
OKLCHoklch(34.79% 0.155 304.4)
XYZxyz(6.7979, 3.5321, 18.4091)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1679 #427916
analogous
#1B1679 #4D1679 #791673
triadic
#4D1679 #794D16 #16794D
tetradic
#4D1679 #791B16 #427916 #167379
square
#4D1679 #791B16 #427916 #167379
split-complementary
#4D1679 #737916 #16791B
monochromatic
#10051A #2C0D45 #4D1679 #6E1FAD #8E30D9

Accessibility & contrast

On white

12.31
#4D1679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1679
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1679#FFFFFF#000000##FFFFFF
##4D16791.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1679;
/* rgb */ color: rgb(77, 22, 121);
/* oklch */ color: oklch(34.8% 0.155 304.4);
Tailwind
colors: {
  custom: {
    50: '#845ba0',
    500: '#4d1679',
    950: '#000000',
  },
}
SCSS
$custom: #4d1679;
$custom-light: #845ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1679",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 273.333,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3479,
    "c": 0.15531,
    "h": 304.4
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#4D1679
secondary
#6FAE3D
accent
#EC3C8A
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1679

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

Preview Lab → · Contrast checker → · Palette generator →

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