#4E198C#4E198C

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

Color values

HEX#4E198C
RGBrgb(78, 25, 140)
HSLhsl(268, 70%, 32%)
HSVhsv(268, 82%, 55%)
CMYKcmyk(44.3%, 82.1%, 0%, 45.1%)
CIE-LABlab(24.35, 47.21, -53.20)
CIE-LCHlch(24.35, 71.13, 311.59°)
OKLaboklab(36.95% 0.0809 -0.1524)
OKLCHoklch(36.95% 0.173 298)
XYZxyz(8.2219, 4.2083, 25.1850)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E198C #578C19
analogous
#191E8C #4E198C #87198C
triadic
#4E198C #8C4E19 #198C4E
tetradic
#4E198C #8C191E #578C19 #198C87
square
#4E198C #8C191E #578C19 #198C87
split-complementary
#4E198C #8C8719 #1E8C19
monochromatic
#140624 #311058 #4E198C #6B22C0 #8A42DD

Accessibility & contrast

On white

11.40
#4E198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E198C
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E198C#FFFFFF#000000##FFFFFF
##4E198C1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e198c;
/* rgb */ color: rgb(78, 25, 140);
/* oklch */ color: oklch(36.9% 0.173 298.0);
Tailwind
colors: {
  custom: {
    50: '#865daf',
    500: '#4e198c',
    950: '#000000',
  },
}
SCSS
$custom: #4e198c;
$custom-light: #865daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e198c",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 267.652,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36948,
    "c": 0.17252,
    "h": 298
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#4E198C
secondary
#85BE43
accent
#ED3B9B
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E198C

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

Preview Lab → · Contrast checker → · Palette generator →

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