#4D2196#4D2196

#4D2196 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.176 H 293.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4D2196
RGBrgb(77, 33, 150)
HSLhsl(263, 64%, 36%)
HSVhsv(263, 78%, 59%)
CMYKcmyk(48.7%, 78%, 0%, 41.2%)
CIE-LABlab(26.35, 46.25, -56.11)
CIE-LCHlch(26.35, 72.71, 309.50°)
OKLaboklab(38.6% 0.0699 -0.161)
OKLCHoklch(38.6% 0.176 293.5)
XYZxyz(9.1079, 4.8672, 29.3078)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2196 #6A9621
analogous
#213096 #4D2196 #872196
triadic
#4D2196 #964D21 #21964D
tetradic
#4D2196 #962130 #6A9621 #219687
square
#4D2196 #962130 #6A9621 #219687
split-complementary
#4D2196 #968721 #309621
monochromatic
#190B32 #331664 #4D2196 #672CC8 #8857DA

Accessibility & contrast

On white

10.64
#4D2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4D2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2196
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2196#FFFFFF#000000##FFFFFF
##4D21961.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#36415B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2196;
/* rgb */ color: rgb(77, 33, 150);
/* oklch */ color: oklch(38.6% 0.176 293.5);
Tailwind
colors: {
  custom: {
    50: '#8762b6',
    500: '#4d2196',
    950: '#000000',
  },
}
SCSS
$custom: #4d2196;
$custom-light: #8762b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2196",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 262.564,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38603,
    "c": 0.17551,
    "h": 293.5
  },
  "luminance": 0.04868
}

Semantic roles & 50–950 ramp

primary
#4D2196
secondary
#96BE55
accent
#E741A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2196

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

Preview Lab → · Contrast checker → · Palette generator →

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