#4E1B7C#4E1B7C

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

Color values

HEX#4E1B7C
RGBrgb(78, 27, 124)
HSLhsl(272, 64%, 30%)
HSVhsv(272, 78%, 49%)
CMYKcmyk(37.1%, 78.2%, 0%, 51.4%)
CIE-LABlab(23.20, 42.32, -45.02)
CIE-LCHlch(23.20, 61.78, 313.23°)
OKLaboklab(35.7% 0.0839 -0.1283)
OKLCHoklch(35.7% 0.153 303.2)
XYZxyz(7.1711, 3.8588, 19.4319)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B7C #497C1B
analogous
#1D1B7C #4E1B7C #7C1B7A
triadic
#4E1B7C #7C4E1B #1B7C4E
tetradic
#4E1B7C #7C1D1B #497C1B #1B7A7C
square
#4E1B7C #7C1D1B #497C1B #1B7A7C
split-complementary
#4E1B7C #7A7C1B #1B7C1D
monochromatic
#100519 #2E104A #4E1B7C #6E26AE #8D3DD5

Accessibility & contrast

On white

11.85
#4E1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B7C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B7C#FFFFFF#000000##FFFFFF
##4E1B7C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#45344A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1b7c;
/* rgb */ color: rgb(78, 27, 124);
/* oklch */ color: oklch(35.7% 0.153 303.2);
Tailwind
colors: {
  custom: {
    50: '#845da3',
    500: '#4e1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b7c;
$custom-light: #845da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b7c",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 271.546,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35701,
    "c": 0.15331,
    "h": 303.2
  },
  "luminance": 0.03859
}

Semantic roles & 50–950 ramp

primary
#4E1B7C
secondary
#77B043
accent
#E74190
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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