#4D197E#4D197E

#4D197E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.157 H 302.1°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#4D197E
RGBrgb(77, 25, 126)
HSLhsl(271, 67%, 30%)
HSVhsv(271, 80%, 49%)
CMYKcmyk(38.9%, 80.2%, 0%, 50.6%)
CIE-LABlab(22.93, 43.50, -46.73)
CIE-LCHlch(22.93, 63.85, 312.95°)
OKLaboklab(35.53% 0.0836 -0.1334)
OKLCHoklch(35.53% 0.157 302.1)
XYZxyz(7.1732, 3.7794, 20.0862)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D197E #4A7E19
analogous
#1B197E #4D197E #7E197D
triadic
#4D197E #7E4D19 #197E4D
tetradic
#4D197E #7E1B19 #4A7E19 #197D7E
square
#4D197E #7E1B19 #4A7E19 #197D7E
split-complementary
#4D197E #7D7E19 #197E1B
monochromatic
#10051A #2E0F4B #4D197E #6C23B1 #8B3AD8

Accessibility & contrast

On white

11.96
#4D197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4D197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D197E
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D197E#FFFFFF#000000##FFFFFF
##4D197E1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#42344B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d197e;
/* rgb */ color: rgb(77, 25, 126);
/* oklch */ color: oklch(35.5% 0.157 302.1);
Tailwind
colors: {
  custom: {
    50: '#845ca4',
    500: '#4d197e',
    950: '#000000',
  },
}
SCSS
$custom: #4d197e;
$custom-light: #845ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d197e",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 270.891,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35534,
    "c": 0.15746,
    "h": 302.1
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#4D197E
secondary
#78B241
accent
#EA3E91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D197E

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

Preview Lab → · Contrast checker → · Palette generator →

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