#4E178D#4E178D

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

Color values

HEX#4E178D
RGBrgb(78, 23, 141)
HSLhsl(268, 72%, 32%)
HSVhsv(268, 84%, 55%)
CMYKcmyk(44.7%, 83.7%, 0%, 44.7%)
CIE-LABlab(24.18, 48.24, -54.10)
CIE-LCHlch(24.18, 72.49, 311.72°)
OKLaboklab(36.86% 0.0821 -0.155)
OKLCHoklch(36.86% 0.175 297.9)
XYZxyz(8.2547, 4.1554, 25.5613)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E178D #568D17
analogous
#171B8D #4E178D #89178D
triadic
#4E178D #8D4E17 #178D4E
tetradic
#4E178D #8D171B #568D17 #178D89
square
#4E178D #8D171B #568D17 #178D89
split-complementary
#4E178D #8D8917 #1B8D17
monochromatic
#140624 #310E58 #4E178D #6B20C2 #8A3FE0

Accessibility & contrast

On white

11.47
#4E178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E178D
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E178D#FFFFFF#000000##FFFFFF
##4E178D1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#3D3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e178d;
/* rgb */ color: rgb(78, 23, 141);
/* oklch */ color: oklch(36.9% 0.175 297.9);
Tailwind
colors: {
  custom: {
    50: '#875caf',
    500: '#4e178d',
    950: '#000000',
  },
}
SCSS
$custom: #4e178d;
$custom-light: #875caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e178d",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 267.966,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36859,
    "c": 0.17536,
    "h": 297.9
  },
  "luminance": 0.04156
}

Semantic roles & 50–950 ramp

primary
#4E178D
secondary
#84C040
accent
#EF399A
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4E178D

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

Preview Lab → · Contrast checker → · Palette generator →

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