#4E1977#4E1977

#4E1977 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.150 H 305.4°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#4E1977
RGBrgb(78, 25, 119)
HSLhsl(274, 65%, 28%)
HSVhsv(274, 79%, 47%)
CMYKcmyk(34.5%, 79%, 0%, 53.3%)
CIE-LABlab(22.47, 41.95, -43.02)
CIE-LCHlch(22.47, 60.09, 314.27°)
OKLaboklab(35.05% 0.087 -0.1225)
OKLCHoklch(35.05% 0.15 305.4)
XYZxyz(6.8185, 3.6469, 17.7939)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1977 #427719
analogous
#1F1977 #4E1977 #771971
triadic
#4E1977 #774E19 #19774E
tetradic
#4E1977 #771F19 #427719 #197177
square
#4E1977 #771F19 #427719 #197177
split-complementary
#4E1977 #717719 #19771F
monochromatic
#110519 #2D0E44 #4E1977 #6F24AA #8F36D5

Accessibility & contrast

On white

12.14
#4E1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1977
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1977#FFFFFF#000000##FFFFFF
##4E19771.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#463147
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1977;
/* rgb */ color: rgb(78, 25, 119);
/* oklch */ color: oklch(35.1% 0.150 305.4);
Tailwind
colors: {
  custom: {
    50: '#845c9f',
    500: '#4e1977',
    950: '#000000',
  },
}
SCSS
$custom: #4e1977;
$custom-light: #845c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1977",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 273.83,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35054,
    "c": 0.15021,
    "h": 305.4
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#4E1977
secondary
#6FAC40
accent
#E84089
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1977

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

Preview Lab → · Contrast checker → · Palette generator →

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