#4E1F76#4E1F76

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

Color values

HEX#4E1F76
RGBrgb(78, 31, 118)
HSLhsl(272, 58%, 29%)
HSVhsv(272, 74%, 46%)
CMYKcmyk(33.9%, 73.7%, 0%, 53.7%)
CIE-LABlab(23.36, 38.92, -40.93)
CIE-LCHlch(23.36, 56.48, 313.56°)
OKLaboklab(35.66% 0.081 -0.1163)
OKLCHoklch(35.66% 0.142 304.8)
XYZxyz(6.9012, 3.9077, 17.5267)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F76 #47761F
analogous
#231F76 #4E1F76 #761F73
triadic
#4E1F76 #764E1F #1F764E
tetradic
#4E1F76 #76231F #47761F #1F7376
square
#4E1F76 #76231F #47761F #1F7376
split-complementary
#4E1F76 #73761F #1F7623
monochromatic
#100618 #2E1246 #4E1F76 #6E2CA6 #8D42CD

Accessibility & contrast

On white

11.79
#4E1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F76
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F76#FFFFFF#000000##FFFFFF
##4E1F761.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#003874
Tritanopia (blue-blind)
#473348
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1f76;
/* rgb */ color: rgb(78, 31, 118);
/* oklch */ color: oklch(35.7% 0.142 304.8);
Tailwind
colors: {
  custom: {
    50: '#845f9e',
    500: '#4e1f76',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f76;
$custom-light: #845f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f76",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 272.414,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35662,
    "c": 0.14175,
    "h": 304.8
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#4E1F76
secondary
#74AA47
accent
#E2468E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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