#4D218D#4D218D

#4D218D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.165 H 296.0°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4D218D
RGBrgb(77, 33, 141)
HSLhsl(264, 62%, 34%)
HSVhsv(264, 77%, 55%)
CMYKcmyk(45.4%, 76.6%, 0%, 44.7%)
CIE-LABlab(25.53, 43.81, -51.90)
CIE-LCHlch(25.53, 67.92, 310.17°)
OKLaboklab(37.77% 0.0724 -0.1486)
OKLCHoklch(37.77% 0.165 296)
XYZxyz(8.4109, 4.5884, 25.6366)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D218D #618D21
analogous
#212B8D #4D218D #83218D
triadic
#4D218D #8D4D21 #218D4D
tetradic
#4D218D #8D212B #618D21 #218D83
square
#4D218D #8D212B #618D21 #218D83
split-complementary
#4D218D #8D8321 #2B8D21
monochromatic
#170A2A #32155B #4D218D #682DBF #8852D6

Accessibility & contrast

On white

10.95
#4D218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4D218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D218D
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D218D#FFFFFF#000000##FFFFFF
##4D218D1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#3B3E55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d218d;
/* rgb */ color: rgb(77, 33, 141);
/* oklch */ color: oklch(37.8% 0.165 296.0);
Tailwind
colors: {
  custom: {
    50: '#8561af',
    500: '#4d218d',
    950: '#000000',
  },
}
SCSS
$custom: #4d218d;
$custom-light: #8561af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d218d",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 264.444,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37772,
    "c": 0.16532,
    "h": 296
  },
  "luminance": 0.04589
}

Semantic roles & 50–950 ramp

primary
#4D218D
secondary
#8FBA50
accent
#E543A3
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D218D

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

Preview Lab → · Contrast checker → · Palette generator →

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