#4E1B7A#4E1B7A

#4E1B7A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.151 H 303.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#4E1B7A
RGBrgb(78, 27, 122)
HSLhsl(272, 64%, 29%)
HSVhsv(272, 78%, 48%)
CMYKcmyk(36.1%, 77.9%, 0%, 52.2%)
CIE-LABlab(23.03, 41.81, -44.02)
CIE-LCHlch(23.03, 60.72, 313.53°)
OKLaboklab(35.53% 0.0843 -0.1254)
OKLCHoklch(35.53% 0.151 303.9)
XYZxyz(7.0459, 3.8087, 18.7725)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B7A #477A1B
analogous
#1F1B7A #4E1B7A #7A1B77
triadic
#4E1B7A #7A4E1B #1B7A4E
tetradic
#4E1B7A #7A1F1B #477A1B #1B777A
square
#4E1B7A #7A1F1B #477A1B #1B777A
split-complementary
#4E1B7A #777A1B #1B7A1F
monochromatic
#100619 #2E1048 #4E1B7A #6E26AC #8D3CD4

Accessibility & contrast

On white

11.92
#4E1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4E1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B7A
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B7A#FFFFFF#000000##FFFFFF
##4E1B7A1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.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: #4e1b7a;
/* rgb */ color: rgb(78, 27, 122);
/* oklch */ color: oklch(35.5% 0.151 303.9);
Tailwind
colors: {
  custom: {
    50: '#845da1',
    500: '#4e1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b7a;
$custom-light: #845da1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b7a",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 272.211,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35528,
    "c": 0.15114,
    "h": 303.9
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#4E1B7A
secondary
#74AE43
accent
#E7418E
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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