#4D198C#4D198C

#4D198C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.172 H 297.4°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#4D198C
RGBrgb(77, 25, 140)
HSLhsl(267, 70%, 32%)
HSVhsv(267, 82%, 55%)
CMYKcmyk(45%, 82.1%, 0%, 45.1%)
CIE-LABlab(24.21, 47.06, -53.43)
CIE-LCHlch(24.21, 71.20, 311.38°)
OKLaboklab(36.83% 0.0794 -0.153)
OKLCHoklch(36.83% 0.172 297.4)
XYZxyz(8.1406, 4.1663, 25.1811)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D198C #588C19
analogous
#191F8C #4D198C #86198C
triadic
#4D198C #8C4D19 #198C4D
tetradic
#4D198C #8C191F #588C19 #198C86
square
#4D198C #8C191F #588C19 #198C86
split-complementary
#4D198C #8C8619 #1F8C19
monochromatic
#140624 #301058 #4D198C #6A22C0 #8842DD

Accessibility & contrast

On white

11.46
#4D198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D198C
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D198C#FFFFFF#000000##FFFFFF
##4D198C1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#3C3A53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d198c;
/* rgb */ color: rgb(77, 25, 140);
/* oklch */ color: oklch(36.8% 0.172 297.4);
Tailwind
colors: {
  custom: {
    50: '#865daf',
    500: '#4d198c',
    950: '#000000',
  },
}
SCSS
$custom: #4d198c;
$custom-light: #865daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d198c",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 267.13,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36825,
    "c": 0.1724,
    "h": 297.4
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

primary
#4D198C
secondary
#86BE43
accent
#ED3B9C
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D198C

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

Preview Lab → · Contrast checker → · Palette generator →

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