#4E176E#4E176E

#4E176E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.143 H 309.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#4E176E
RGBrgb(78, 23, 110)
HSLhsl(278, 65%, 26%)
HSVhsv(278, 79%, 43%)
CMYKcmyk(29.1%, 79.1%, 0%, 56.9%)
CIE-LABlab(21.43, 40.63, -38.92)
CIE-LCHlch(21.43, 56.26, 316.23°)
OKLaboklab(34.09% 0.091 -0.1104)
OKLCHoklch(34.09% 0.143 309.5)
XYZxyz(6.2622, 3.3584, 15.0672)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E176E #376E17
analogous
#22176E #4E176E #6E1762
triadic
#4E176E #6E4E17 #176E4E
tetradic
#4E176E #6E2217 #376E17 #17626E
square
#4E176E #6E2217 #376E17 #17626E
split-complementary
#4E176E #626E17 #176E22
monochromatic
#120519 #2A0C3B #4E176E #7222A1 #962CD3

Accessibility & contrast

On white

12.56
#4E176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E176E
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E176E#FFFFFF#000000##FFFFFF
##4E176E1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#492C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e176e;
/* rgb */ color: rgb(78, 23, 110);
/* oklch */ color: oklch(34.1% 0.143 309.5);
Tailwind
colors: {
  custom: {
    50: '#835b98',
    500: '#4e176e',
    950: '#000000',
  },
}
SCSS
$custom: #4e176e;
$custom-light: #835b98;
$custom-dark: #000000;
JSON
{
  "hex": "#4e176e",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 277.931,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34087,
    "c": 0.14304,
    "h": 309.5
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#4E176E
secondary
#63A43D
accent
#E83F7E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E176E

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

Preview Lab → · Contrast checker → · Palette generator →

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