#4D277C#4D277C

#4D277C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.138 H 300.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#4D277C
RGBrgb(77, 39, 124)
HSLhsl(267, 52%, 32%)
HSVhsv(267, 69%, 49%)
CMYKcmyk(37.9%, 68.5%, 0%, 51.4%)
CIE-LABlab(25.21, 36.09, -41.76)
CIE-LCHlch(25.21, 55.19, 310.84°)
OKLaboklab(37.1% 0.0694 -0.1189)
OKLCHoklch(37.1% 0.138 300.3)
XYZxyz(7.4233, 4.4840, 19.5393)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D277C #567C27
analogous
#272B7C #4D277C #78277C
triadic
#4D277C #7C4D27 #277C4D
tetradic
#4D277C #7C272B #567C27 #277C78
square
#4D277C #7C272B #567C27 #277C78
split-complementary
#4D277C #7C7827 #2B7C27
monochromatic
#130A1F #30184D #4D277C #6A36AB #8954C9

Accessibility & contrast

On white

11.07
#4D277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4D277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D277C
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D277C#FFFFFF#000000##FFFFFF
##4D277C1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#433A4E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d277c;
/* rgb */ color: rgb(77, 39, 124);
/* oklch */ color: oklch(37.1% 0.138 300.3);
Tailwind
colors: {
  custom: {
    50: '#8364a3',
    500: '#4d277c',
    950: '#000000',
  },
}
SCSS
$custom: #4d277c;
$custom-light: #8364a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d277c",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 266.824,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37102,
    "c": 0.13763,
    "h": 300.3
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#4D277C
secondary
#84AE51
accent
#DC4C9B
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4D277C

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

Preview Lab → · Contrast checker → · Palette generator →

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