#4D216D#4D216D

#4D216D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.128 H 307.6°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#4D216D
RGBrgb(77, 33, 109)
HSLhsl(275, 54%, 28%)
HSVhsv(275, 70%, 43%)
CMYKcmyk(29.4%, 69.7%, 0%, 57.3%)
CIE-LABlab(22.89, 35.38, -35.91)
CIE-LCHlch(22.89, 50.41, 314.58°)
OKLaboklab(35.08% 0.0784 -0.1016)
OKLCHoklch(35.08% 0.128 307.6)
XYZxyz(6.3642, 3.7697, 14.8574)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D216D #416D21
analogous
#27216D #4D216D #6D2167
triadic
#4D216D #6D4D21 #216D4D
tetradic
#4D216D #6D2721 #416D21 #21676D
square
#4D216D #6D2721 #416D21 #21676D
split-complementary
#4D216D #676D21 #216D27
monochromatic
#110717 #2C133E #4D216D #6E2F9C #8F42C6

Accessibility & contrast

On white

11.97
#4D216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D216D
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D216D#FFFFFF#000000##FFFFFF
##4D216D1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#11376B
Tritanopia (blue-blind)
#483144
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d216d;
/* rgb */ color: rgb(77, 33, 109);
/* oklch */ color: oklch(35.1% 0.128 307.6);
Tailwind
colors: {
  custom: {
    50: '#826097',
    500: '#4d216d',
    950: '#000000',
  },
}
SCSS
$custom: #4d216d;
$custom-light: #826097;
$custom-dark: #000000;
JSON
{
  "hex": "#4d216d",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 274.737,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35077,
    "c": 0.12834,
    "h": 307.6
  },
  "luminance": 0.0377
}

Semantic roles & 50–950 ramp

primary
#4D216D
secondary
#6EA149
accent
#DD4B88
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4D216D

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

Preview Lab → · Contrast checker → · Palette generator →

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