#4E1A6D#4E1A6D

#4E1A6D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.138 H 309.5°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#4E1A6D
RGBrgb(78, 26, 109)
HSLhsl(278, 61%, 26%)
HSVhsv(278, 76%, 43%)
CMYKcmyk(28.4%, 76.1%, 0%, 57.3%)
CIE-LABlab(21.81, 39.07, -37.65)
CIE-LCHlch(21.81, 54.26, 316.06°)
OKLaboklab(34.33% 0.088 -0.1067)
OKLCHoklch(34.33% 0.138 309.5)
XYZxyz(6.2710, 3.4627, 14.8031)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A6D #396D1A
analogous
#251A6D #4E1A6D #6D1A63
triadic
#4E1A6D #6D4E1A #1A6D4E
tetradic
#4E1A6D #6D251A #396D1A #1A636D
square
#4E1A6D #6D251A #396D1A #1A636D
split-complementary
#4E1A6D #636D1A #1A6D25
monochromatic
#120619 #2B0E3C #4E1A6D #71269E #9433CE

Accessibility & contrast

On white

12.41
#4E1A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1A6D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A6D#FFFFFF#000000##FFFFFF
##4E1A6D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#07356B
Tritanopia (blue-blind)
#492D42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1a6d;
/* rgb */ color: rgb(78, 26, 109);
/* oklch */ color: oklch(34.3% 0.138 309.5);
Tailwind
colors: {
  custom: {
    50: '#835c97',
    500: '#4e1a6d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a6d;
$custom-light: #835c97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a6d",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 109
  },
  "hsl": {
    "h": 277.59,
    "s": 61.481,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34333,
    "c": 0.13831,
    "h": 309.5
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#4E1A6D
secondary
#65A241
accent
#E5437F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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