#4D2197#4D2197

#4D2197 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.177 H 293.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#4D2197
RGBrgb(77, 33, 151)
HSLhsl(262, 64%, 36%)
HSVhsv(262, 78%, 59%)
CMYKcmyk(49%, 78.1%, 0%, 40.8%)
CIE-LABlab(26.45, 46.52, -56.57)
CIE-LCHlch(26.45, 73.24, 309.43°)
OKLaboklab(38.7% 0.0696 -0.1623)
OKLCHoklch(38.7% 0.177 293.2)
XYZxyz(9.1888, 4.8996, 29.7337)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2197 #6B9721
analogous
#213097 #4D2197 #882197
triadic
#4D2197 #974D21 #21974D
tetradic
#4D2197 #972130 #6B9721 #219788
square
#4D2197 #972130 #6B9721 #219788
split-complementary
#4D2197 #978821 #309721
monochromatic
#1A0B33 #331665 #4D2197 #672CC9 #8958DA

Accessibility & contrast

On white

10.61
#4D2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4D2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2197
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2197#FFFFFF#000000##FFFFFF
##4D21971.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#36425B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d2197;
/* rgb */ color: rgb(77, 33, 151);
/* oklch */ color: oklch(38.7% 0.177 293.2);
Tailwind
colors: {
  custom: {
    50: '#8762b7',
    500: '#4d2197',
    950: '#000000',
  },
}
SCSS
$custom: #4d2197;
$custom-light: #8762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2197",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 262.373,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38697,
    "c": 0.17664,
    "h": 293.2
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

primary
#4D2197
secondary
#97BE55
accent
#E741A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D2197

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

Preview Lab → · Contrast checker → · Palette generator →

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