#4D218A#4D218A

#4D218A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.162 H 296.9°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4D218A
RGBrgb(77, 33, 138)
HSLhsl(265, 61%, 34%)
HSVhsv(265, 76%, 54%)
CMYKcmyk(44.2%, 76.1%, 0%, 45.9%)
CIE-LABlab(25.26, 43.00, -50.47)
CIE-LCHlch(25.26, 66.30, 310.43°)
OKLaboklab(37.5% 0.0732 -0.1444)
OKLCHoklch(37.5% 0.162 296.9)
XYZxyz(8.1907, 4.5003, 24.4769)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D218A #5E8A21
analogous
#21298A #4D218A #81218A
triadic
#4D218A #8A4D21 #218A4D
tetradic
#4D218A #8A2129 #5E8A21 #218A81
square
#4D218A #8A2129 #5E8A21 #218A81
split-complementary
#4D218A #8A8121 #298A21
monochromatic
#160927 #311559 #4D218A #692DBB #8850D5

Accessibility & contrast

On white

11.05
#4D218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D218A
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D218A#FFFFFF#000000##FFFFFF
##4D218A1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#3D3C54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d218a;
/* rgb */ color: rgb(77, 33, 138);
/* oklch */ color: oklch(37.5% 0.162 296.9);
Tailwind
colors: {
  custom: {
    50: '#8561ad',
    500: '#4d218a',
    950: '#000000',
  },
}
SCSS
$custom: #4d218a;
$custom-light: #8561ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d218a",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 265.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37501,
    "c": 0.1619,
    "h": 296.9
  },
  "luminance": 0.045
}

Semantic roles & 50–950 ramp

primary
#4D218A
secondary
#8CB94E
accent
#E543A1
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D218A

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

Preview Lab → · Contrast checker → · Palette generator →

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