#4D216E#4D216E

#4D216E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.130 H 307.2°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#4D216E
RGBrgb(77, 33, 110)
HSLhsl(274, 54%, 28%)
HSVhsv(274, 70%, 43%)
CMYKcmyk(30%, 70%, 0%, 56.9%)
CIE-LABlab(22.97, 35.64, -36.43)
CIE-LCHlch(22.97, 50.96, 314.37°)
OKLaboklab(35.15% 0.0783 -0.1032)
OKLCHoklch(35.15% 0.13 307.2)
XYZxyz(6.4183, 3.7914, 15.1425)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D216E #426E21
analogous
#27216E #4D216E #6E2168
triadic
#4D216E #6E4D21 #216E4D
tetradic
#4D216E #6E2721 #426E21 #21686E
square
#4D216E #6E2721 #426E21 #21686E
split-complementary
#4D216E #686E21 #216E27
monochromatic
#100718 #2C133F #4D216E #6E2F9D #8E43C7

Accessibility & contrast

On white

11.94
#4D216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4D216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D216E
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D216E#FFFFFF#000000##FFFFFF
##4D216E1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#0F376C
Tritanopia (blue-blind)
#483244
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d216e;
/* rgb */ color: rgb(77, 33, 110);
/* oklch */ color: oklch(35.2% 0.130 307.2);
Tailwind
colors: {
  custom: {
    50: '#826098',
    500: '#4d216e',
    950: '#000000',
  },
}
SCSS
$custom: #4d216e;
$custom-light: #826098;
$custom-dark: #000000;
JSON
{
  "hex": "#4d216e",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 274.286,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35154,
    "c": 0.12951,
    "h": 307.2
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#4D216E
secondary
#6FA249
accent
#DD4B89
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D216E

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

Preview Lab → · Contrast checker → · Palette generator →

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