#4D197D#4D197D

#4D197D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.156 H 302.5°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#4D197D
RGBrgb(77, 25, 125)
HSLhsl(271, 67%, 29%)
HSVhsv(271, 80%, 49%)
CMYKcmyk(38.4%, 80%, 0%, 51%)
CIE-LABlab(22.84, 43.25, -46.24)
CIE-LCHlch(22.84, 63.32, 313.08°)
OKLaboklab(35.45% 0.0839 -0.132)
OKLCHoklch(35.45% 0.156 302.5)
XYZxyz(7.1090, 3.7537, 19.7481)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D197D #497D19
analogous
#1B197D #4D197D #7D197B
triadic
#4D197D #7D4D19 #197D4D
tetradic
#4D197D #7D1B19 #497D19 #197B7D
square
#4D197D #7D1B19 #497D19 #197B7D
split-complementary
#4D197D #7B7D19 #197D1B
monochromatic
#10051A #2E0F4A #4D197D #6C23B0 #8B39D7

Accessibility & contrast

On white

11.99
#4D197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D197D
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D197D#FFFFFF#000000##FFFFFF
##4D197D1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#43334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d197d;
/* rgb */ color: rgb(77, 25, 125);
/* oklch */ color: oklch(35.4% 0.156 302.5);
Tailwind
colors: {
  custom: {
    50: '#845ca3',
    500: '#4d197d',
    950: '#000000',
  },
}
SCSS
$custom: #4d197d;
$custom-light: #845ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d197d",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 271.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35445,
    "c": 0.15639,
    "h": 302.5
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#4D197D
secondary
#77B140
accent
#EA3E90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D197D

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

Preview Lab → · Contrast checker → · Palette generator →

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