#4D147E#4D147E

#4D147E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.162 H 302.7°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#4D147E
RGBrgb(77, 20, 126)
HSLhsl(272, 73%, 29%)
HSVhsv(272, 84%, 49%)
CMYKcmyk(38.9%, 84.1%, 0%, 50.6%)
CIE-LABlab(22.25, 45.48, -47.85)
CIE-LCHlch(22.25, 66.01, 313.55°)
OKLaboklab(35.06% 0.0878 -0.1366)
OKLCHoklch(35.06% 0.162 302.7)
XYZxyz(7.0757, 3.5844, 20.0537)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D147E #457E14
analogous
#18147E #4D147E #7E147A
triadic
#4D147E #7E4D14 #147E4D
tetradic
#4D147E #7E1814 #457E14 #147A7E
square
#4D147E #7E1814 #457E14 #147A7E
split-complementary
#4D147E #7A7E14 #147E18
monochromatic
#10041A #2D0C49 #4D147E #6D1CB3 #8D2EDE

Accessibility & contrast

On white

12.23
#4D147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4D147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D147E
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D147E#FFFFFF#000000##FFFFFF
##4D147E1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#43324A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d147e;
/* rgb */ color: rgb(77, 20, 126);
/* oklch */ color: oklch(35.1% 0.162 302.7);
Tailwind
colors: {
  custom: {
    50: '#845aa4',
    500: '#4d147e',
    950: '#000000',
  },
}
SCSS
$custom: #4d147e;
$custom-light: #845aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d147e",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 272.264,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35059,
    "c": 0.16239,
    "h": 302.7
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#4D147E
secondary
#72B33A
accent
#EF388D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D147E

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

Preview Lab → · Contrast checker → · Palette generator →

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