#4D197B#4D197B

#4D197B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.154 H 303.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#4D197B
RGBrgb(77, 25, 123)
HSLhsl(272, 66%, 29%)
HSVhsv(272, 80%, 48%)
CMYKcmyk(37.4%, 79.7%, 0%, 51.8%)
CIE-LABlab(22.66, 42.75, -45.26)
CIE-LCHlch(22.66, 62.26, 313.37°)
OKLaboklab(35.27% 0.0845 -0.1291)
OKLCHoklch(35.27% 0.154 303.2)
XYZxyz(6.9825, 3.7031, 19.0820)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D197B #477B19
analogous
#1C197B #4D197B #7B1978
triadic
#4D197B #7B4D19 #197B4D
tetradic
#4D197B #7B1C19 #477B19 #19787B
square
#4D197B #7B1C19 #477B19 #19787B
split-complementary
#4D197B #787B19 #197B1C
monochromatic
#100519 #2D0F48 #4D197B #6D23AE #8C38D7

Accessibility & contrast

On white

12.06
#4D197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4D197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D197B
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D197B#FFFFFF#000000##FFFFFF
##4D197B1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#443249
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d197b;
/* rgb */ color: rgb(77, 25, 123);
/* oklch */ color: oklch(35.3% 0.154 303.2);
Tailwind
colors: {
  custom: {
    50: '#845ca2',
    500: '#4d197b',
    950: '#000000',
  },
}
SCSS
$custom: #4d197b;
$custom-light: #845ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d197b",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 271.837,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35268,
    "c": 0.15424,
    "h": 303.2
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#4D197B
secondary
#74AF40
accent
#E93F8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D197B

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

Preview Lab → · Contrast checker → · Palette generator →

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