#4D2079#4D2079

#4D2079 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.144 H 302.8°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#4D2079
RGBrgb(77, 32, 121)
HSLhsl(270, 58%, 30%)
HSVhsv(270, 74%, 47%)
CMYKcmyk(36.4%, 73.6%, 0%, 52.5%)
CIE-LABlab(23.64, 38.98, -42.39)
CIE-LCHlch(23.64, 57.59, 312.60°)
OKLaboklab(35.91% 0.0779 -0.1207)
OKLCHoklch(35.91% 0.144 302.8)
XYZxyz(7.0275, 3.9913, 18.4856)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2079 #4C7920
analogous
#202079 #4D2079 #792079
triadic
#4D2079 #794D20 #20794D
tetradic
#4D2079 #792020 #4C7920 #207979
square
#4D2079 #792020 #4C7920 #207979
split-complementary
#4D2079 #797920 #207920
monochromatic
#0F0618 #2E1349 #4D2079 #6C2DA9 #8A45CE

Accessibility & contrast

On white

11.68
#4D2079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D2079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2079
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2079#FFFFFF#000000##FFFFFF
##4D20791.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.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: #4d2079;
/* rgb */ color: rgb(77, 32, 121);
/* oklch */ color: oklch(35.9% 0.144 302.8);
Tailwind
colors: {
  custom: {
    50: '#8360a0',
    500: '#4d2079',
    950: '#000000',
  },
}
SCSS
$custom: #4d2079;
$custom-light: #8360a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2079",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 270.337,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.35906,
    "c": 0.14363,
    "h": 302.8
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#4D2079
secondary
#7AAC49
accent
#E14693
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4D2079

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

Preview Lab → · Contrast checker → · Palette generator →

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