#4D198F#4D198F

#4D198F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.176 H 296.5°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4D198F
RGBrgb(77, 25, 143)
HSLhsl(266, 70%, 33%)
HSVhsv(266, 83%, 56%)
CMYKcmyk(46.2%, 82.5%, 0%, 43.9%)
CIE-LABlab(24.50, 47.83, -54.83)
CIE-LCHlch(24.50, 72.76, 311.10°)
OKLaboklab(37.11% 0.0783 -0.1571)
OKLCHoklch(37.11% 0.176 296.5)
XYZxyz(8.3648, 4.2560, 26.3621)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D198F #5B8F19
analogous
#19208F #4D198F #88198F
triadic
#4D198F #8F4D19 #198F4D
tetradic
#4D198F #8F1920 #5B8F19 #198F88
square
#4D198F #8F1920 #5B8F19 #198F88
split-complementary
#4D198F #8F8819 #208F19
monochromatic
#150727 #31105B #4D198F #6922C3 #8844DE

Accessibility & contrast

On white

11.34
#4D198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D198F
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D198F#FFFFFF#000000##FFFFFF
##4D198F1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#3B3B55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d198f;
/* rgb */ color: rgb(77, 25, 143);
/* oklch */ color: oklch(37.1% 0.176 296.5);
Tailwind
colors: {
  custom: {
    50: '#865db1',
    500: '#4d198f',
    950: '#000000',
  },
}
SCSS
$custom: #4d198f;
$custom-light: #865db1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d198f",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 266.441,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37111,
    "c": 0.17559,
    "h": 296.5
  },
  "luminance": 0.04256
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D198F

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

Preview Lab → · Contrast checker → · Palette generator →

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