#4D198B#4D198B

#4D198B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.171 H 297.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4D198B
RGBrgb(77, 25, 139)
HSLhsl(267, 70%, 32%)
HSVhsv(267, 82%, 55%)
CMYKcmyk(44.6%, 82%, 0%, 45.5%)
CIE-LABlab(24.12, 46.81, -52.96)
CIE-LCHlch(24.12, 70.68, 311.47°)
OKLaboklab(36.73% 0.0797 -0.1517)
OKLCHoklch(36.73% 0.171 297.7)
XYZxyz(8.0672, 4.1370, 24.7946)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D198B #578B19
analogous
#191E8B #4D198B #86198B
triadic
#4D198B #8B4D19 #198B4D
tetradic
#4D198B #8B191E #578B19 #198B86
square
#4D198B #8B191E #578B19 #198B86
split-complementary
#4D198B #8B8619 #1E8B19
monochromatic
#140623 #301057 #4D198B #6A22BF #8841DD

Accessibility & contrast

On white

11.49
#4D198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D198B
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D198B#FFFFFF#000000##FFFFFF
##4D198B1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#3D3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d198b;
/* rgb */ color: rgb(77, 25, 139);
/* oklch */ color: oklch(36.7% 0.171 297.7);
Tailwind
colors: {
  custom: {
    50: '#865dae',
    500: '#4d198b',
    950: '#000000',
  },
}
SCSS
$custom: #4d198b;
$custom-light: #865dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d198b",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 267.368,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3673,
    "c": 0.17134,
    "h": 297.7
  },
  "luminance": 0.04137
}

Semantic roles & 50–950 ramp

primary
#4D198B
secondary
#85BE42
accent
#EC3B9C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D198B

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

Preview Lab → · Contrast checker → · Palette generator →

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