#4D2399#4D2399

#4D2399 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.177 H 292.4°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4D2399
RGBrgb(77, 35, 153)
HSLhsl(261, 63%, 37%)
HSVhsv(261, 77%, 60%)
CMYKcmyk(49.7%, 77.1%, 0%, 40%)
CIE-LABlab(26.96, 46.13, -56.96)
CIE-LCHlch(26.96, 73.30, 309.01°)
OKLaboklab(39.11% 0.0674 -0.1635)
OKLCHoklch(39.11% 0.177 292.4)
XYZxyz(9.4098, 5.0794, 30.6154)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2399 #6F9923
analogous
#233499 #4D2399 #882399
triadic
#4D2399 #994D23 #23994D
tetradic
#4D2399 #992334 #6F9923 #239988
square
#4D2399 #992334 #6F9923 #239988
split-complementary
#4D2399 #998823 #349923
monochromatic
#1B0C35 #341867 #4D2399 #662ECB #895DDA

Accessibility & contrast

On white

10.42
#4D2399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4D2399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2399
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2399#FFFFFF#000000##FFFFFF
##4D23991.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#34435D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d2399;
/* rgb */ color: rgb(77, 35, 153);
/* oklch */ color: oklch(39.1% 0.177 292.4);
Tailwind
colors: {
  custom: {
    50: '#8763b8',
    500: '#4d2399',
    950: '#000000',
  },
}
SCSS
$custom: #4d2399;
$custom-light: #8763b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2399",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 261.356,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39114,
    "c": 0.17683,
    "h": 292.4
  },
  "luminance": 0.0508
}

Semantic roles & 50–950 ramp

primary
#4D2399
secondary
#9ABE59
accent
#E642AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2399

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

Preview Lab → · Contrast checker → · Palette generator →

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