#4E2977#4E2977

#4E2977 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.129 H 302.4°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#4E2977
RGBrgb(78, 41, 119)
HSLhsl(268, 49%, 31%)
HSVhsv(268, 66%, 47%)
CMYKcmyk(34.5%, 65.5%, 0%, 53.3%)
CIE-LABlab(25.37, 33.85, -38.31)
CIE-LCHlch(25.37, 51.12, 311.46°)
OKLaboklab(37.13% 0.0689 -0.1087)
OKLCHoklch(37.13% 0.129 302.4)
XYZxyz(7.2638, 4.5375, 17.9423)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2977 #527729
analogous
#292B77 #4E2977 #752977
triadic
#4E2977 #774E29 #29774E
tetradic
#4E2977 #77292B #527729 #297775
square
#4E2977 #77292B #527729 #297775
split-complementary
#4E2977 #777529 #2B7729
monochromatic
#120A1C #301949 #4E2977 #6C39A5 #8A56C5

Accessibility & contrast

On white

11.01
#4E2977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4E2977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2977
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2977#FFFFFF#000000##FFFFFF
##4E29771.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C79
Deuteranopia (green-blind)
#103C75
Tritanopia (blue-blind)
#463A4C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2977;
/* rgb */ color: rgb(78, 41, 119);
/* oklch */ color: oklch(37.1% 0.129 302.4);
Tailwind
colors: {
  custom: {
    50: '#83659f',
    500: '#4e2977',
    950: '#000000',
  },
}
SCSS
$custom: #4e2977;
$custom-light: #83659f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2977",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 119
  },
  "hsl": {
    "h": 268.462,
    "s": 48.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37129,
    "c": 0.12869,
    "h": 302.4
  },
  "luminance": 0.04537
}

Semantic roles & 50–950 ramp

primary
#4E2977
secondary
#80A953
accent
#D84F97
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2977

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

Preview Lab → · Contrast checker → · Palette generator →

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