#4E1A6C#4E1A6C

#4E1A6C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.137 H 310.0°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#4E1A6C
RGBrgb(78, 26, 108)
HSLhsl(278, 61%, 26%)
HSVhsv(278, 76%, 42%)
CMYKcmyk(27.8%, 75.9%, 0%, 57.6%)
CIE-LABlab(21.73, 38.83, -37.13)
CIE-LCHlch(21.73, 53.72, 316.28°)
OKLaboklab(34.25% 0.0882 -0.1051)
OKLCHoklch(34.25% 0.137 310)
XYZxyz(6.2175, 3.4413, 14.5212)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A6C #386C1A
analogous
#251A6C #4E1A6C #6C1A61
triadic
#4E1A6C #6C4E1A #1A6C4E
tetradic
#4E1A6C #6C251A #386C1A #1A616C
square
#4E1A6C #6C251A #386C1A #1A616C
split-complementary
#4E1A6C #616C1A #1A6C25
monochromatic
#120619 #2A0E3B #4E1A6C #72269D #9533CE

Accessibility & contrast

On white

12.44
#4E1A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4E1A6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A6C
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A6C#FFFFFF#000000##FFFFFF
##4E1A6C1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#09356A
Tritanopia (blue-blind)
#4A2D41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1a6c;
/* rgb */ color: rgb(78, 26, 108);
/* oklch */ color: oklch(34.3% 0.137 310.0);
Tailwind
colors: {
  custom: {
    50: '#835c97',
    500: '#4e1a6c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a6c;
$custom-light: #835c97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a6c",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 278.049,
    "s": 61.194,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34253,
    "c": 0.13724,
    "h": 310
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#4E1A6C
secondary
#64A141
accent
#E4437E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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