#4E1B8F#4E1B8F

#4E1B8F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.174 H 296.8°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#4E1B8F
RGBrgb(78, 27, 143)
HSLhsl(266, 68%, 33%)
HSVhsv(266, 81%, 56%)
CMYKcmyk(45.5%, 81.1%, 0%, 43.9%)
CIE-LABlab(24.91, 47.17, -54.15)
CIE-LCHlch(24.91, 71.81, 311.06°)
OKLaboklab(37.43% 0.0784 -0.1551)
OKLCHoklch(37.43% 0.174 296.8)
XYZxyz(8.4904, 4.3866, 26.3806)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B8F #5C8F1B
analogous
#1B228F #4E1B8F #881B8F
triadic
#4E1B8F #8F4E1B #1B8F4E
tetradic
#4E1B8F #8F1B22 #5C8F1B #1B8F88
square
#4E1B8F #8F1B22 #5C8F1B #1B8F88
split-complementary
#4E1B8F #8F881B #228F1B
monochromatic
#160828 #32115C #4E1B8F #6A25C2 #8948DC

Accessibility & contrast

On white

11.19
#4E1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E1B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B8F
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B8F#FFFFFF#000000##FFFFFF
##4E1B8F1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#3C3C55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1b8f;
/* rgb */ color: rgb(78, 27, 143);
/* oklch */ color: oklch(37.4% 0.174 296.8);
Tailwind
colors: {
  custom: {
    50: '#875eb1',
    500: '#4e1b8f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b8f;
$custom-light: #875eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b8f",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 266.379,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37425,
    "c": 0.17383,
    "h": 296.8
  },
  "luminance": 0.04387
}

Semantic roles & 50–950 ramp

primary
#4E1B8F
secondary
#8ABE48
accent
#EB3D9E
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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