#4E176F#4E176F

#4E176F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.144 H 309.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4E176F
RGBrgb(78, 23, 111)
HSLhsl(278, 66%, 26%)
HSVhsv(278, 79%, 44%)
CMYKcmyk(29.7%, 79.3%, 0%, 56.5%)
CIE-LABlab(21.51, 40.86, -39.44)
CIE-LCHlch(21.51, 56.79, 316.02°)
OKLaboklab(34.17% 0.0908 -0.1119)
OKLCHoklch(34.17% 0.144 309)
XYZxyz(6.3169, 3.3803, 15.3555)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E176F #386F17
analogous
#22176F #4E176F #6F1764
triadic
#4E176F #6F4E17 #176F4E
tetradic
#4E176F #6F2217 #386F17 #17646F
square
#4E176F #6F2217 #386F17 #17646F
split-complementary
#4E176F #646F17 #176F22
monochromatic
#120519 #2A0C3C #4E176F #7222A2 #952DD3

Accessibility & contrast

On white

12.53
#4E176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E176F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E176F#FFFFFF#000000##FFFFFF
##4E176F1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#492C42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e176f;
/* rgb */ color: rgb(78, 23, 111);
/* oklch */ color: oklch(34.2% 0.144 309.0);
Tailwind
colors: {
  custom: {
    50: '#835b99',
    500: '#4e176f',
    950: '#000000',
  },
}
SCSS
$custom: #4e176f;
$custom-light: #835b99;
$custom-dark: #000000;
JSON
{
  "hex": "#4e176f",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 277.5,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34169,
    "c": 0.14408,
    "h": 309
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#4E176F
secondary
#64A53D
accent
#E93F7F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E176F

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

Preview Lab → · Contrast checker → · Palette generator →

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