#4D198E#4D198E

#4D198E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.175 H 296.8°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4D198E
RGBrgb(77, 25, 142)
HSLhsl(267, 70%, 33%)
HSVhsv(267, 82%, 56%)
CMYKcmyk(45.8%, 82.4%, 0%, 44.3%)
CIE-LABlab(24.40, 47.58, -54.36)
CIE-LCHlch(24.40, 72.24, 311.19°)
OKLaboklab(37.02% 0.0787 -0.1558)
OKLCHoklch(37.02% 0.175 296.8)
XYZxyz(8.2894, 4.2259, 25.9649)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D198E #5A8E19
analogous
#191F8E #4D198E #88198E
triadic
#4D198E #8E4D19 #198E4D
tetradic
#4D198E #8E191F #5A8E19 #198E88
square
#4D198E #8E191F #5A8E19 #198E88
split-complementary
#4D198E #8E8819 #1F8E19
monochromatic
#150726 #31105A #4D198E #6922C2 #8843DE

Accessibility & contrast

On white

11.38
#4D198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4D198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D198E
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D198E#FFFFFF#000000##FFFFFF
##4D198E1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#3B3B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d198e;
/* rgb */ color: rgb(77, 25, 142);
/* oklch */ color: oklch(37.0% 0.175 296.8);
Tailwind
colors: {
  custom: {
    50: '#865db0',
    500: '#4d198e',
    950: '#000000',
  },
}
SCSS
$custom: #4d198e;
$custom-light: #865db0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d198e",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 266.667,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37015,
    "c": 0.17453,
    "h": 296.8
  },
  "luminance": 0.04226
}

Semantic roles & 50–950 ramp

primary
#4D198E
secondary
#88BF44
accent
#ED3B9E
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D198E

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

Preview Lab → · Contrast checker → · Palette generator →

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