#4E1A6F#4E1A6F

#4E1A6F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.140 H 308.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4E1A6F
RGBrgb(78, 26, 111)
HSLhsl(277, 62%, 27%)
HSVhsv(277, 77%, 44%)
CMYKcmyk(29.7%, 76.6%, 0%, 56.5%)
CIE-LABlab(21.97, 39.55, -38.69)
CIE-LCHlch(21.97, 55.33, 315.63°)
OKLaboklab(34.49% 0.0877 -0.1097)
OKLCHoklch(34.49% 0.14 308.6)
XYZxyz(6.3799, 3.5063, 15.3765)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A6F #3B6F1A
analogous
#241A6F #4E1A6F #6F1A66
triadic
#4E1A6F #6F4E1A #1A6F4E
tetradic
#4E1A6F #6F241A #3B6F1A #1A666F
square
#4E1A6F #6F241A #3B6F1A #1A666F
split-complementary
#4E1A6F #666F1A #1A6F24
monochromatic
#110619 #2B0E3D #4E1A6F #7126A1 #9334CF

Accessibility & contrast

On white

12.34
#4E1A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1A6F
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A6F#FFFFFF#000000##FFFFFF
##4E1A6F1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1a6f;
/* rgb */ color: rgb(78, 26, 111);
/* oklch */ color: oklch(34.5% 0.140 308.6);
Tailwind
colors: {
  custom: {
    50: '#835c99',
    500: '#4e1a6f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a6f;
$custom-light: #835c99;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a6f",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 276.706,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34495,
    "c": 0.14045,
    "h": 308.6
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#4E1A6F
secondary
#67A441
accent
#E54382
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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