#4E1A6E#4E1A6E

#4E1A6E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.139 H 309.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#4E1A6E
RGBrgb(78, 26, 110)
HSLhsl(277, 62%, 27%)
HSVhsv(277, 76%, 43%)
CMYKcmyk(29.1%, 76.4%, 0%, 56.9%)
CIE-LABlab(21.89, 39.31, -38.17)
CIE-LCHlch(21.89, 54.79, 315.84°)
OKLaboklab(34.41% 0.0879 -0.1082)
OKLCHoklch(34.41% 0.139 309.1)
XYZxyz(6.3252, 3.4844, 15.0882)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A6E #3A6E1A
analogous
#241A6E #4E1A6E #6E1A64
triadic
#4E1A6E #6E4E1A #1A6E4E
tetradic
#4E1A6E #6E241A #3A6E1A #1A646E
square
#4E1A6E #6E241A #3A6E1A #1A646E
split-complementary
#4E1A6E #646E1A #1A6E24
monochromatic
#120619 #2B0E3D #4E1A6E #7126A0 #9434CF

Accessibility & contrast

On white

12.38
#4E1A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A6E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A6E#FFFFFF#000000##FFFFFF
##4E1A6E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#04356C
Tritanopia (blue-blind)
#492D42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1a6e;
/* rgb */ color: rgb(78, 26, 110);
/* oklch */ color: oklch(34.4% 0.139 309.1);
Tailwind
colors: {
  custom: {
    50: '#835c98',
    500: '#4e1a6e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a6e;
$custom-light: #835c98;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a6e",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 277.143,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34414,
    "c": 0.13938,
    "h": 309.1
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#4E1A6E
secondary
#66A341
accent
#E54381
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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