#4E1E72#4E1E72

#4E1E72 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.139 H 306.7°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4E1E72
RGBrgb(78, 30, 114)
HSLhsl(274, 58%, 28%)
HSVhsv(274, 74%, 45%)
CMYKcmyk(31.6%, 73.7%, 0%, 55.3%)
CIE-LABlab(22.87, 38.40, -39.16)
CIE-LCHlch(22.87, 54.85, 314.44°)
OKLaboklab(35.21% 0.0828 -0.1111)
OKLCHoklch(35.21% 0.139 306.7)
XYZxyz(6.6428, 3.7632, 16.2928)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E72 #42721E
analogous
#241E72 #4E1E72 #721E6C
triadic
#4E1E72 #724E1E #1E724E
tetradic
#4E1E72 #72241E #42721E #1E6C72
square
#4E1E72 #72241E #42721E #1E6C72
split-complementary
#4E1E72 #6C721E #1E7224
monochromatic
#110618 #2D1142 #4E1E72 #6F2BA2 #8F3ECC

Accessibility & contrast

On white

11.98
#4E1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E1E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E72
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E72#FFFFFF#000000##FFFFFF
##4E1E721.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#033770
Tritanopia (blue-blind)
#483146
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1e72;
/* rgb */ color: rgb(78, 30, 114);
/* oklch */ color: oklch(35.2% 0.139 306.7);
Tailwind
colors: {
  custom: {
    50: '#835e9b',
    500: '#4e1e72',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e72;
$custom-light: #835e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e72",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 274.286,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35213,
    "c": 0.13857,
    "h": 306.7
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#4E1E72
secondary
#6FA646
accent
#E24689
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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