#4D198D#4D198D

#4D198D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.173 H 297.1°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#4D198D
RGBrgb(77, 25, 141)
HSLhsl(267, 70%, 33%)
HSVhsv(267, 82%, 55%)
CMYKcmyk(45.4%, 82.3%, 0%, 44.7%)
CIE-LABlab(24.31, 47.32, -53.90)
CIE-LCHlch(24.31, 71.72, 311.28°)
OKLaboklab(36.92% 0.079 -0.1544)
OKLCHoklch(36.92% 0.173 297.1)
XYZxyz(8.2146, 4.1960, 25.5712)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D198D #598D19
analogous
#191F8D #4D198D #87198D
triadic
#4D198D #8D4D19 #198D4D
tetradic
#4D198D #8D191F #598D19 #198D87
square
#4D198D #8D191F #598D19 #198D87
split-complementary
#4D198D #8D8719 #1F8D19
monochromatic
#140725 #311059 #4D198D #6922C1 #8843DE

Accessibility & contrast

On white

11.42
#4D198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D198D
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D198D#FFFFFF#000000##FFFFFF
##4D198D1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#3C3A54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d198d;
/* rgb */ color: rgb(77, 25, 141);
/* oklch */ color: oklch(36.9% 0.173 297.1);
Tailwind
colors: {
  custom: {
    50: '#865daf',
    500: '#4d198d',
    950: '#000000',
  },
}
SCSS
$custom: #4d198d;
$custom-light: #865daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d198d",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 266.897,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3692,
    "c": 0.17346,
    "h": 297.1
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#4D198D
secondary
#87BF43
accent
#ED3B9D
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D198D

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

Preview Lab → · Contrast checker → · Palette generator →

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