#4E188C#4E188C

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

Color values

HEX#4E188C
RGBrgb(78, 24, 140)
HSLhsl(268, 71%, 32%)
HSVhsv(268, 83%, 55%)
CMYKcmyk(44.3%, 82.9%, 0%, 45.1%)
CIE-LABlab(24.21, 47.61, -53.42)
CIE-LCHlch(24.21, 71.56, 311.70°)
OKLaboklab(36.85% 0.0817 -0.153)
OKLCHoklch(36.85% 0.173 298.1)
XYZxyz(8.2009, 4.1663, 25.1780)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E188C #568C18
analogous
#181C8C #4E188C #88188C
triadic
#4E188C #8C4E18 #188C4E
tetradic
#4E188C #8C181C #568C18 #188C88
square
#4E188C #8C181C #568C18 #188C88
split-complementary
#4E188C #8C8818 #1C8C18
monochromatic
#140624 #310F58 #4E188C #6B21C0 #8A40DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E188C#FFFFFF#000000##FFFFFF
##4E188C1.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)
#3E3953
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e188c;
/* rgb */ color: rgb(78, 24, 140);
/* oklch */ color: oklch(36.9% 0.173 298.1);
Tailwind
colors: {
  custom: {
    50: '#865daf',
    500: '#4e188c',
    950: '#000000',
  },
}
SCSS
$custom: #4e188c;
$custom-light: #865daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e188c",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 267.931,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36854,
    "c": 0.17343,
    "h": 298.1
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

primary
#4E188C
secondary
#84BF41
accent
#ED3A9A
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E188C

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

Preview Lab → · Contrast checker → · Palette generator →

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