#4E1B6F#4E1B6F

#4E1B6F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.139 H 308.5°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4E1B6F
RGBrgb(78, 27, 111)
HSLhsl(276, 61%, 27%)
HSVhsv(276, 76%, 44%)
CMYKcmyk(29.7%, 75.7%, 0%, 56.5%)
CIE-LABlab(22.13, 39.09, -38.43)
CIE-LCHlch(22.13, 54.82, 315.49°)
OKLaboklab(34.61% 0.0866 -0.109)
OKLCHoklch(34.61% 0.139 308.5)
XYZxyz(6.4025, 3.5514, 15.3840)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B6F #3C6F1B
analogous
#241B6F #4E1B6F #6F1B66
triadic
#4E1B6F #6F4E1B #1B6F4E
tetradic
#4E1B6F #6F241B #3C6F1B #1B666F
square
#4E1B6F #6F241B #3C6F1B #1B666F
split-complementary
#4E1B6F #666F1B #1B6F24
monochromatic
#110619 #2B0F3E #4E1B6F #7127A0 #9236CE

Accessibility & contrast

On white

12.28
#4E1B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E1B6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B6F
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B6F#FFFFFF#000000##FFFFFF
##4E1B6F1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#04366D
Tritanopia (blue-blind)
#492E43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1b6f;
/* rgb */ color: rgb(78, 27, 111);
/* oklch */ color: oklch(34.6% 0.139 308.5);
Tailwind
colors: {
  custom: {
    50: '#835d99',
    500: '#4e1b6f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b6f;
$custom-light: #835d99;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b6f",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 276.429,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3461,
    "c": 0.13919,
    "h": 308.5
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#4E1B6F
secondary
#68A442
accent
#E44483
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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