#4E176A#4E176A

#4E176A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.139 H 311.3°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4E176A
RGBrgb(78, 23, 106)
HSLhsl(280, 64%, 25%)
HSVhsv(280, 78%, 42%)
CMYKcmyk(26.4%, 78.3%, 0%, 58.4%)
CIE-LABlab(21.11, 39.69, -36.84)
CIE-LCHlch(21.11, 54.15, 317.13°)
OKLaboklab(33.76% 0.0917 -0.1043)
OKLCHoklch(33.76% 0.139 311.3)
XYZxyz(6.0493, 3.2733, 13.9460)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E176A #336A17
analogous
#24176A #4E176A #6A175C
triadic
#4E176A #6A4E17 #176A4E
tetradic
#4E176A #6A2417 #336A17 #175C6A
square
#4E176A #6A2417 #336A17 #175C6A
split-complementary
#4E176A #5C6A17 #176A24
monochromatic
#130519 #290C38 #4E176A #73229C #982DCF

Accessibility & contrast

On white

12.69
#4E176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4E176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E176A
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E176A#FFFFFF#000000##FFFFFF
##4E176A1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#083468
Tritanopia (blue-blind)
#4A2A3F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e176a;
/* rgb */ color: rgb(78, 23, 106);
/* oklch */ color: oklch(33.8% 0.139 311.3);
Tailwind
colors: {
  custom: {
    50: '#835a95',
    500: '#4e176a',
    950: '#000000',
  },
}
SCSS
$custom: #4e176a;
$custom-light: #835a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4e176a",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 279.759,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33761,
    "c": 0.13888,
    "h": 311.3
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#4E176A
secondary
#5EA03D
accent
#E74079
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E176A

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

Preview Lab → · Contrast checker → · Palette generator →

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