#4D1978#4D1978

#4D1978 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.151 H 304.4°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4D1978
RGBrgb(77, 25, 120)
HSLhsl(273, 66%, 28%)
HSVhsv(273, 79%, 47%)
CMYKcmyk(35.8%, 79.2%, 0%, 52.9%)
CIE-LABlab(22.41, 42.00, -43.77)
CIE-LCHlch(22.41, 60.66, 313.82°)
OKLaboklab(35% 0.0852 -0.1247)
OKLCHoklch(35% 0.151 304.4)
XYZxyz(6.7976, 3.6291, 18.1080)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1978 #447819
analogous
#1D1978 #4D1978 #781973
triadic
#4D1978 #784D19 #19784D
tetradic
#4D1978 #781D19 #447819 #197378
square
#4D1978 #781D19 #447819 #197378
split-complementary
#4D1978 #737819 #19781D
monochromatic
#100519 #2C0E45 #4D1978 #6D24AB #8D36D5

Accessibility & contrast

On white

12.17
#4D1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1978
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1978#FFFFFF#000000##FFFFFF
##4D19781.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#453148
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1978;
/* rgb */ color: rgb(77, 25, 120);
/* oklch */ color: oklch(35.0% 0.151 304.4);
Tailwind
colors: {
  custom: {
    50: '#835ca0',
    500: '#4d1978',
    950: '#000000',
  },
}
SCSS
$custom: #4d1978;
$custom-light: #835ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1978",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 272.842,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35005,
    "c": 0.15104,
    "h": 304.4
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#4D1978
secondary
#71AD40
accent
#E83F8C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4D1978

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

Preview Lab → · Contrast checker → · Palette generator →

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