#4E1F77#4E1F77

#4E1F77 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.143 H 304.4°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4E1F77
RGBrgb(78, 31, 119)
HSLhsl(272, 59%, 29%)
HSVhsv(272, 74%, 47%)
CMYKcmyk(34.5%, 73.9%, 0%, 53.3%)
CIE-LABlab(23.44, 39.17, -41.44)
CIE-LCHlch(23.44, 57.02, 313.39°)
OKLaboklab(35.74% 0.0808 -0.1178)
OKLCHoklch(35.74% 0.143 304.4)
XYZxyz(6.9609, 3.9316, 17.8413)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F77 #48771F
analogous
#221F77 #4E1F77 #771F74
triadic
#4E1F77 #774E1F #1F774E
tetradic
#4E1F77 #77221F #48771F #1F7477
square
#4E1F77 #77221F #48771F #1F7477
split-complementary
#4E1F77 #74771F #1F7722
monochromatic
#100618 #2E1246 #4E1F77 #6E2CA8 #8D43CE

Accessibility & contrast

On white

11.76
#4E1F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E1F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F77
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F77#FFFFFF#000000##FFFFFF
##4E1F771.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#003875
Tritanopia (blue-blind)
#463449
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1f77;
/* rgb */ color: rgb(78, 31, 119);
/* oklch */ color: oklch(35.7% 0.143 304.4);
Tailwind
colors: {
  custom: {
    50: '#845f9f',
    500: '#4e1f77',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f77;
$custom-light: #845f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f77",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 272.045,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35744,
    "c": 0.14289,
    "h": 304.4
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#4E1F77
secondary
#76AB47
accent
#E2468F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E1F77

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

Preview Lab → · Contrast checker → · Palette generator →

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