#4E176C#4E176C

#4E176C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.141 H 310.4°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#4E176C
RGBrgb(78, 23, 108)
HSLhsl(279, 65%, 26%)
HSVhsv(279, 79%, 42%)
CMYKcmyk(27.8%, 78.7%, 0%, 57.6%)
CIE-LABlab(21.26, 40.16, -37.88)
CIE-LCHlch(21.26, 55.21, 316.67°)
OKLaboklab(33.92% 0.0914 -0.1073)
OKLCHoklch(33.92% 0.141 310.4)
XYZxyz(6.1545, 3.3153, 14.5002)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E176C #356C17
analogous
#24176C #4E176C #6C175F
triadic
#4E176C #6C4E17 #176C4E
tetradic
#4E176C #6C2417 #356C17 #175F6C
square
#4E176C #6C2417 #356C17 #175F6C
split-complementary
#4E176C #5F6C17 #176C24
monochromatic
#120519 #2A0C3A #4E176C #72229E #972CD1

Accessibility & contrast

On white

12.63
#4E176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4E176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E176C
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E176C#FFFFFF#000000##FFFFFF
##4E176C1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#04346A
Tritanopia (blue-blind)
#4A2B40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e176c;
/* rgb */ color: rgb(78, 23, 108);
/* oklch */ color: oklch(33.9% 0.141 310.4);
Tailwind
colors: {
  custom: {
    50: '#835a97',
    500: '#4e176c',
    950: '#000000',
  },
}
SCSS
$custom: #4e176c;
$custom-light: #835a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e176c",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 278.824,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33923,
    "c": 0.14096,
    "h": 310.4
  },
  "luminance": 0.03315
}

Semantic roles & 50–950 ramp

primary
#4E176C
secondary
#61A23D
accent
#E8407B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E176C

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

Preview Lab → · Contrast checker → · Palette generator →

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