#4E1C7A#4E1C7A

#4E1C7A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.150 H 303.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4E1C7A
RGBrgb(78, 28, 122)
HSLhsl(272, 63%, 29%)
HSVhsv(272, 77%, 48%)
CMYKcmyk(36.1%, 77%, 0%, 52.2%)
CIE-LABlab(23.19, 41.36, -43.76)
CIE-LCHlch(23.19, 60.22, 313.38°)
OKLaboklab(35.64% 0.0833 -0.1247)
OKLCHoklch(35.64% 0.15 303.8)
XYZxyz(7.0692, 3.8554, 18.7803)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1C7A #487A1C
analogous
#1F1C7A #4E1C7A #7A1C77
triadic
#4E1C7A #7A4E1C #1C7A4E
tetradic
#4E1C7A #7A1F1C #487A1C #1C777A
square
#4E1C7A #7A1F1C #487A1C #1C777A
split-complementary
#4E1C7A #777A1C #1C7A1F
monochromatic
#100619 #2E1148 #4E1C7A #6E27AC #8D3ED3

Accessibility & contrast

On white

11.86
#4E1C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E1C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1C7A
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1C7A#FFFFFF#000000##FFFFFF
##4E1C7A1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#453349
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1c7a;
/* rgb */ color: rgb(78, 28, 122);
/* oklch */ color: oklch(35.6% 0.150 303.8);
Tailwind
colors: {
  custom: {
    50: '#845ea1',
    500: '#4e1c7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1c7a;
$custom-light: #845ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1c7a",
  "rgb": {
    "r": 78,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 271.915,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3564,
    "c": 0.14996,
    "h": 303.8
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#4E1C7A
secondary
#76AE44
accent
#E6428F
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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