#4D074E#4D074E

#4D074E is a dark, vivid purple. Relative luminance 0.023; OKLCH L 30.1% C 0.129 H 327.6°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#4D074E
RGBrgb(77, 7, 78)
HSLhsl(299, 84%, 17%)
HSVhsv(299, 91%, 31%)
CMYKcmyk(1.3%, 91%, 0%, 69.4%)
CIE-LABlab(16.89, 39.26, -24.94)
CIE-LCHlch(16.89, 46.51, 327.57°)
OKLaboklab(30.09% 0.1091 -0.0693)
OKLCHoklch(30.09% 0.129 327.6)
XYZxyz(4.5116, 2.2801, 7.4087)
Luminance0.0228 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D074E #084E07
analogous
#2A074E #4D074E #4E072C
triadic
#4D074E #4E4D07 #074E4D
tetradic
#4D074E #4E2A07 #084E07 #072C4E
square
#4D074E #4E2A07 #084E07 #072C4E
split-complementary
#4D074E #2C4E07 #074E2A
monochromatic
#1C031C #1C031C #4D074E #840C86 #BC11BE

Accessibility & contrast

On white

14.42
#4D074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#4D074E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D074E
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D074E#FFFFFF#000000##FFFFFF
##4D074E1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#1C2D4C
Tritanopia (blue-blind)
#50152C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4d074e;
/* rgb */ color: rgb(77, 7, 78);
/* oklch */ color: oklch(30.1% 0.129 327.6);
Tailwind
colors: {
  custom: {
    50: '#825280',
    500: '#4d074e',
    950: '#000000',
  },
}
SCSS
$custom: #4d074e;
$custom-light: #825280;
$custom-dark: #000000;
JSON
{
  "hex": "#4d074e",
  "rgb": {
    "r": 77,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 299.155,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.30086,
    "c": 0.12922,
    "h": 327.6
  },
  "luminance": 0.0228
}

Semantic roles & 50–950 ramp

primary
#4D074E
secondary
#268C25
accent
#FA2E31
background
#F8F5F7
surface
#EFE8EE
border
#CAC4C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D074E

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

Preview Lab → · Contrast checker → · Palette generator →

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