#4D216B#4D216B

#4D216B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.126 H 308.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#4D216B
RGBrgb(77, 33, 107)
HSLhsl(276, 53%, 27%)
HSVhsv(276, 69%, 42%)
CMYKcmyk(28%, 69.2%, 0%, 58%)
CIE-LABlab(22.75, 34.88, -34.85)
CIE-LCHlch(22.75, 49.30, 315.03°)
OKLaboklab(34.92% 0.0786 -0.0985)
OKLCHoklch(34.92% 0.126 308.6)
XYZxyz(6.2577, 3.7271, 14.2968)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D216B #3F6B21
analogous
#28216B #4D216B #6B2164
triadic
#4D216B #6B4D21 #216B4D
tetradic
#4D216B #6B2821 #3F6B21 #21646B
square
#4D216B #6B2821 #3F6B21 #21646B
split-complementary
#4D216B #646B21 #216B28
monochromatic
#110717 #2B133C #4D216B #6F2F9A #9042C5

Accessibility & contrast

On white

12.03
#4D216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D216B
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D216B#FFFFFF#000000##FFFFFF
##4D216B1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#143769
Tritanopia (blue-blind)
#493043
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d216b;
/* rgb */ color: rgb(77, 33, 107);
/* oklch */ color: oklch(34.9% 0.126 308.6);
Tailwind
colors: {
  custom: {
    50: '#826096',
    500: '#4d216b',
    950: '#000000',
  },
}
SCSS
$custom: #4d216b;
$custom-light: #826096;
$custom-dark: #000000;
JSON
{
  "hex": "#4d216b",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 275.676,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34924,
    "c": 0.12601,
    "h": 308.6
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#4D216B
secondary
#6C9F49
accent
#DC4C86
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4D216B

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

Preview Lab → · Contrast checker → · Palette generator →

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