#4D2181#4D2181

#4D2181 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.152 H 299.8°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#4D2181
RGBrgb(77, 33, 129)
HSLhsl(268, 59%, 32%)
HSVhsv(268, 74%, 51%)
CMYKcmyk(40.3%, 74.4%, 0%, 49.4%)
CIE-LABlab(24.48, 40.59, -46.10)
CIE-LCHlch(24.48, 61.42, 311.37°)
OKLaboklab(36.71% 0.0752 -0.1316)
OKLCHoklch(36.71% 0.152 299.8)
XYZxyz(7.5659, 4.2504, 21.1864)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2181 #558121
analogous
#212581 #4D2181 #7D2181
triadic
#4D2181 #814D21 #21814D
tetradic
#4D2181 #812125 #558121 #21817D
square
#4D2181 #812125 #558121 #21817D
split-complementary
#4D2181 #817D21 #258121
monochromatic
#130820 #301550 #4D2181 #6A2DB2 #894BD1

Accessibility & contrast

On white

11.35
#4D2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4D2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2181
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2181#FFFFFF#000000##FFFFFF
##4D21811.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#41394F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d2181;
/* rgb */ color: rgb(77, 33, 129);
/* oklch */ color: oklch(36.7% 0.152 299.8);
Tailwind
colors: {
  custom: {
    50: '#8461a6',
    500: '#4d2181',
    950: '#000000',
  },
}
SCSS
$custom: #4d2181;
$custom-light: #8461a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2181",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 267.5,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36709,
    "c": 0.15157,
    "h": 299.8
  },
  "luminance": 0.0425
}

Semantic roles & 50–950 ramp

primary
#4D2181
secondary
#83B44A
accent
#E2459A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D2181

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

Preview Lab → · Contrast checker → · Palette generator →

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