#4D218C#4D218C

#4D218C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.164 H 296.3°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#4D218C
RGBrgb(77, 33, 140)
HSLhsl(265, 62%, 34%)
HSVhsv(265, 76%, 55%)
CMYKcmyk(45%, 76.4%, 0%, 45.1%)
CIE-LABlab(25.44, 43.54, -51.42)
CIE-LCHlch(25.44, 67.38, 310.25°)
OKLaboklab(37.68% 0.0726 -0.1472)
OKLCHoklch(37.68% 0.164 296.3)
XYZxyz(8.3368, 4.5588, 25.2465)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D218C #608C21
analogous
#212B8C #4D218C #83218C
triadic
#4D218C #8C4D21 #218C4D
tetradic
#4D218C #8C212B #608C21 #218C83
square
#4D218C #8C212B #608C21 #218C83
split-complementary
#4D218C #8C8321 #2B8C21
monochromatic
#170A29 #32155A #4D218C #682DBE #8851D6

Accessibility & contrast

On white

10.98
#4D218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D218C
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D218C#FFFFFF#000000##FFFFFF
##4D218C1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#3C3D55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d218c;
/* rgb */ color: rgb(77, 33, 140);
/* oklch */ color: oklch(37.7% 0.164 296.3);
Tailwind
colors: {
  custom: {
    50: '#8561af',
    500: '#4d218c',
    950: '#000000',
  },
}
SCSS
$custom: #4d218c;
$custom-light: #8561af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d218c",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 264.673,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37681,
    "c": 0.16417,
    "h": 296.3
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#4D218C
secondary
#8EB94F
accent
#E543A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D218C

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

Preview Lab → · Contrast checker → · Palette generator →

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