#4E198B#4E198B

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

Color values

HEX#4E198B
RGBrgb(78, 25, 139)
HSLhsl(268, 70%, 32%)
HSVhsv(268, 82%, 55%)
CMYKcmyk(43.9%, 82%, 0%, 45.5%)
CIE-LABlab(24.25, 46.96, -52.73)
CIE-LCHlch(24.25, 70.61, 311.69°)
OKLaboklab(36.85% 0.0813 -0.151)
OKLCHoklch(36.85% 0.171 298.3)
XYZxyz(8.1485, 4.1789, 24.7984)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E198B #568B19
analogous
#191D8B #4E198B #87198B
triadic
#4E198B #8B4E19 #198B4E
tetradic
#4E198B #8B191D #568B19 #198B87
square
#4E198B #8B191D #568B19 #198B87
split-complementary
#4E198B #8B8719 #1D8B19
monochromatic
#140623 #311057 #4E198B #6B22BF #8A41DD

Accessibility & contrast

On white

11.44
#4E198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E198B
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E198B#FFFFFF#000000##FFFFFF
##4E198B1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e198b;
/* rgb */ color: rgb(78, 25, 139);
/* oklch */ color: oklch(36.9% 0.171 298.3);
Tailwind
colors: {
  custom: {
    50: '#865dae',
    500: '#4e198b',
    950: '#000000',
  },
}
SCSS
$custom: #4e198b;
$custom-light: #865dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e198b",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 267.895,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36854,
    "c": 0.17146,
    "h": 298.3
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

primary
#4E198B
secondary
#84BE42
accent
#EC3B9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E198B

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

Preview Lab → · Contrast checker → · Palette generator →

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