#4E1B8C#4E1B8C

#4E1B8C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.171 H 297.7°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#4E1B8C
RGBrgb(78, 27, 140)
HSLhsl(267, 68%, 33%)
HSVhsv(267, 81%, 55%)
CMYKcmyk(44.3%, 80.7%, 0%, 45.1%)
CIE-LABlab(24.63, 46.40, -52.74)
CIE-LCHlch(24.63, 70.25, 311.34°)
OKLaboklab(37.14% 0.0794 -0.151)
OKLCHoklch(37.14% 0.171 297.7)
XYZxyz(8.2662, 4.2969, 25.1997)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B8C #598C1B
analogous
#1B208C #4E1B8C #871B8C
triadic
#4E1B8C #8C4E1B #1B8C4E
tetradic
#4E1B8C #8C1B20 #598C1B #1B8C87
square
#4E1B8C #8C1B20 #598C1B #1B8C87
split-complementary
#4E1B8C #8C871B #208C1B
monochromatic
#150725 #311159 #4E1B8C #6B25BF #8946DB

Accessibility & contrast

On white

11.29
#4E1B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E1B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B8C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B8C#FFFFFF#000000##FFFFFF
##4E1B8C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#3E3A54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e1b8c;
/* rgb */ color: rgb(78, 27, 140);
/* oklch */ color: oklch(37.1% 0.171 297.7);
Tailwind
colors: {
  custom: {
    50: '#865eaf',
    500: '#4e1b8c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b8c;
$custom-light: #865eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b8c",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 267.08,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37143,
    "c": 0.17061,
    "h": 297.7
  },
  "luminance": 0.04297
}

Semantic roles & 50–950 ramp

primary
#4E1B8C
secondary
#87BD46
accent
#EB3D9C
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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