#4D2198#4D2198

#4D2198 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.178 H 293.0°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4D2198
RGBrgb(77, 33, 152)
HSLhsl(262, 64%, 36%)
HSVhsv(262, 78%, 60%)
CMYKcmyk(49.3%, 78.3%, 0%, 40.4%)
CIE-LABlab(26.54, 46.79, -57.03)
CIE-LCHlch(26.54, 73.77, 309.37°)
OKLaboklab(38.79% 0.0693 -0.1637)
OKLCHoklch(38.79% 0.178 293)
XYZxyz(9.2703, 4.9322, 30.1632)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2198 #6C9821
analogous
#213198 #4D2198 #892198
triadic
#4D2198 #984D21 #21984D
tetradic
#4D2198 #982131 #6C9821 #219889
square
#4D2198 #982131 #6C9821 #219889
split-complementary
#4D2198 #988921 #319821
monochromatic
#1A0B33 #341666 #4D2198 #662CCA #8959DB

Accessibility & contrast

On white

10.57
#4D2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2198
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2198#FFFFFF#000000##FFFFFF
##4D21981.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#35425C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2198;
/* rgb */ color: rgb(77, 33, 152);
/* oklch */ color: oklch(38.8% 0.178 293.0);
Tailwind
colors: {
  custom: {
    50: '#8762b7',
    500: '#4d2198',
    950: '#000000',
  },
}
SCSS
$custom: #4d2198;
$custom-light: #8762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2198",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 262.185,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38792,
    "c": 0.17776,
    "h": 293
  },
  "luminance": 0.04932
}

Semantic roles & 50–950 ramp

primary
#4D2198
secondary
#98BF56
accent
#E740AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2198

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

Preview Lab → · Contrast checker → · Palette generator →

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