#4D2188#4D2188

#4D2188 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.160 H 297.5°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#4D2188
RGBrgb(77, 33, 136)
HSLhsl(266, 61%, 33%)
HSVhsv(266, 76%, 53%)
CMYKcmyk(43.4%, 75.7%, 0%, 46.7%)
CIE-LABlab(25.08, 42.46, -49.51)
CIE-LCHlch(25.08, 65.22, 310.62°)
OKLaboklab(37.32% 0.0736 -0.1416)
OKLCHoklch(37.32% 0.16 297.5)
XYZxyz(8.0472, 4.4429, 23.7214)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2188 #5C8821
analogous
#212888 #4D2188 #802188
triadic
#4D2188 #884D21 #21884D
tetradic
#4D2188 #882128 #5C8821 #218880
square
#4D2188 #882128 #5C8821 #218880
split-complementary
#4D2188 #888021 #288821
monochromatic
#150925 #311557 #4D2188 #692DB9 #884FD4

Accessibility & contrast

On white

11.12
#4D2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4D2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2188
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2188#FFFFFF#000000##FFFFFF
##4D21881.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#3E3C53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2188;
/* rgb */ color: rgb(77, 33, 136);
/* oklch */ color: oklch(37.3% 0.160 297.5);
Tailwind
colors: {
  custom: {
    50: '#8561ac',
    500: '#4d2188',
    950: '#000000',
  },
}
SCSS
$custom: #4d2188;
$custom-light: #8561ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2188",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 265.631,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37322,
    "c": 0.15961,
    "h": 297.5
  },
  "luminance": 0.04443
}

Semantic roles & 50–950 ramp

primary
#4D2188
secondary
#8AB84D
accent
#E444A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D2188

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

Preview Lab → · Contrast checker → · Palette generator →

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