#4D277D#4D277D

#4D277D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.139 H 299.9°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#4D277D
RGBrgb(77, 39, 125)
HSLhsl(267, 52%, 32%)
HSVhsv(267, 69%, 49%)
CMYKcmyk(38.4%, 68.8%, 0%, 51%)
CIE-LABlab(25.29, 36.36, -42.26)
CIE-LCHlch(25.29, 55.75, 310.71°)
OKLaboklab(37.18% 0.0693 -0.1203)
OKLCHoklch(37.18% 0.139 299.9)
XYZxyz(7.4868, 4.5094, 19.8740)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D277D #577D27
analogous
#272C7D #4D277D #78277D
triadic
#4D277D #7D4D27 #277D4D
tetradic
#4D277D #7D272C #577D27 #277D78
square
#4D277D #7D272C #577D27 #277D78
split-complementary
#4D277D #7D7827 #2C7D27
monochromatic
#140A20 #30184E #4D277D #6A36AC #8855CA

Accessibility & contrast

On white

11.04
#4D277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D277D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D277D#FFFFFF#000000##FFFFFF
##4D277D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#423B4E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d277d;
/* rgb */ color: rgb(77, 39, 125);
/* oklch */ color: oklch(37.2% 0.139 299.9);
Tailwind
colors: {
  custom: {
    50: '#8364a3',
    500: '#4d277d',
    950: '#000000',
  },
}
SCSS
$custom: #4d277d;
$custom-light: #8364a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d277d",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 266.512,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37183,
    "c": 0.13886,
    "h": 299.9
  },
  "luminance": 0.04509
}

Semantic roles & 50–950 ramp

primary
#4D277D
secondary
#85AF51
accent
#DC4C9C
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4D277D

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

Preview Lab → · Contrast checker → · Palette generator →

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