#4D219D#4D219D

#4D219D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.183 H 291.7°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4D219D
RGBrgb(77, 33, 157)
HSLhsl(261, 65%, 37%)
HSVhsv(261, 79%, 62%)
CMYKcmyk(51%, 79%, 0%, 38.4%)
CIE-LABlab(27.02, 48.15, -59.31)
CIE-LCHlch(27.02, 76.40, 309.07°)
OKLaboklab(39.27% 0.0678 -0.1704)
OKLCHoklch(39.27% 0.183 291.7)
XYZxyz(9.6885, 5.0994, 32.3656)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D219D #719D21
analogous
#21339D #4D219D #8B219D
triadic
#4D219D #9D4D21 #219D4D
tetradic
#4D219D #9D2133 #719D21 #219D8B
square
#4D219D #9D2133 #719D21 #219D8B
split-complementary
#4D219D #9D8B21 #339D21
monochromatic
#1B0C38 #34166A #4D219D #662CD0 #895CDD

Accessibility & contrast

On white

10.40
#4D219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D219D
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D219D#FFFFFF#000000##FFFFFF
##4D219D1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#32445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d219d;
/* rgb */ color: rgb(77, 33, 157);
/* oklch */ color: oklch(39.3% 0.183 291.7);
Tailwind
colors: {
  custom: {
    50: '#8862bb',
    500: '#4d219d',
    950: '#000000',
  },
}
SCSS
$custom: #4d219d;
$custom-light: #8862bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d219d",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 261.29,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39268,
    "c": 0.18337,
    "h": 291.7
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#4D219D
secondary
#9CC159
accent
#E840AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D219D

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

Preview Lab → · Contrast checker → · Palette generator →

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