#4E1C71#4E1C71

#4E1C71 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.140 H 307.4°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4E1C71
RGBrgb(78, 28, 113)
HSLhsl(275, 60%, 28%)
HSVhsv(275, 75%, 44%)
CMYKcmyk(31%, 75.2%, 0%, 55.7%)
CIE-LABlab(22.45, 39.11, -39.19)
CIE-LCHlch(22.45, 55.37, 314.94°)
OKLaboklab(34.89% 0.0852 -0.1112)
OKLCHoklch(34.89% 0.14 307.4)
XYZxyz(6.5371, 3.6426, 15.9783)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1C71 #3F711C
analogous
#231C71 #4E1C71 #711C6A
triadic
#4E1C71 #714E1C #1C714E
tetradic
#4E1C71 #71231C #3F711C #1C6A71
square
#4E1C71 #71231C #3F711C #1C6A71
split-complementary
#4E1C71 #6A711C #1C7123
monochromatic
#110619 #2C1040 #4E1C71 #7028A2 #9139CE

Accessibility & contrast

On white

12.15
#4E1C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E1C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1C71
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1C71#FFFFFF#000000##FFFFFF
##4E1C711.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#01366F
Tritanopia (blue-blind)
#483044
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1c71;
/* rgb */ color: rgb(78, 28, 113);
/* oklch */ color: oklch(34.9% 0.140 307.4);
Tailwind
colors: {
  custom: {
    50: '#835d9a',
    500: '#4e1c71',
    950: '#000000',
  },
}
SCSS
$custom: #4e1c71;
$custom-light: #835d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1c71",
  "rgb": {
    "r": 78,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 275.294,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34889,
    "c": 0.14009,
    "h": 307.4
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#4E1C71
secondary
#6CA643
accent
#E34486
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1C71

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

Preview Lab → · Contrast checker → · Palette generator →

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