#4E188F#4E188F

#4E188F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.177 H 297.2°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4E188F
RGBrgb(78, 24, 143)
HSLhsl(267, 71%, 33%)
HSVhsv(267, 83%, 56%)
CMYKcmyk(45.5%, 83.2%, 0%, 43.9%)
CIE-LABlab(24.50, 48.37, -54.82)
CIE-LCHlch(24.50, 73.11, 311.42°)
OKLaboklab(37.14% 0.0807 -0.1571)
OKLCHoklch(37.14% 0.177 297.2)
XYZxyz(8.4251, 4.2560, 26.3589)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E188F #598F18
analogous
#181E8F #4E188F #89188F
triadic
#4E188F #8F4E18 #188F4E
tetradic
#4E188F #8F181E #598F18 #188F89
square
#4E188F #8F181E #598F18 #188F89
split-complementary
#4E188F #8F8918 #1E8F18
monochromatic
#150626 #310F5B #4E188F #6B21C3 #8942DF

Accessibility & contrast

On white

11.34
#4E188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E188F
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E188F#FFFFFF#000000##FFFFFF
##4E188F1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#3C3B55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e188f;
/* rgb */ color: rgb(78, 24, 143);
/* oklch */ color: oklch(37.1% 0.177 297.2);
Tailwind
colors: {
  custom: {
    50: '#875db1',
    500: '#4e188f',
    950: '#000000',
  },
}
SCSS
$custom: #4e188f;
$custom-light: #875db1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e188f",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 267.227,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3714,
    "c": 0.17659,
    "h": 297.2
  },
  "luminance": 0.04256
}

Semantic roles & 50–950 ramp

primary
#4E188F
secondary
#87C043
accent
#EE3A9C
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E188F

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

Preview Lab → · Contrast checker → · Palette generator →

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