#4E1A71#4E1A71

#4E1A71 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.143 H 307.7°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4E1A71
RGBrgb(78, 26, 113)
HSLhsl(276, 63%, 27%)
HSVhsv(276, 77%, 44%)
CMYKcmyk(31%, 77%, 0%, 55.7%)
CIE-LABlab(22.13, 40.04, -39.72)
CIE-LCHlch(22.13, 56.40, 315.23°)
OKLaboklab(34.66% 0.0873 -0.1128)
OKLCHoklch(34.66% 0.143 307.7)
XYZxyz(6.4913, 3.5508, 15.9630)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A71 #3D711A
analogous
#221A71 #4E1A71 #711A69
triadic
#4E1A71 #714E1A #1A714E
tetradic
#4E1A71 #71221A #3D711A #1A6971
square
#4E1A71 #71221A #3D711A #1A6971
split-complementary
#4E1A71 #69711A #1A7122
monochromatic
#110619 #2C0F3F #4E1A71 #7025A3 #9235D0

Accessibility & contrast

On white

12.28
#4E1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A71
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A71#FFFFFF#000000##FFFFFF
##4E1A711.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#482F44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1a71;
/* rgb */ color: rgb(78, 26, 113);
/* oklch */ color: oklch(34.7% 0.143 307.7);
Tailwind
colors: {
  custom: {
    50: '#835c9a',
    500: '#4e1a71',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a71;
$custom-light: #835c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a71",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 275.862,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34658,
    "c": 0.14261,
    "h": 307.7
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#4E1A71
secondary
#6AA641
accent
#E64284
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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