#4E1D95#4E1D95

#4E1D95 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.178 H 294.8°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4E1D95
RGBrgb(78, 29, 149)
HSLhsl(265, 67%, 35%)
HSVhsv(265, 81%, 58%)
CMYKcmyk(47.7%, 80.5%, 0%, 41.6%)
CIE-LABlab(25.77, 47.90, -56.45)
CIE-LCHlch(25.77, 74.04, 310.32°)
OKLaboklab(38.19% 0.075 -0.1619)
OKLCHoklch(38.19% 0.178 294.8)
XYZxyz(9.0046, 4.6681, 28.8545)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D95 #64951D
analogous
#1D2895 #4E1D95 #8A1D95
triadic
#4E1D95 #954E1D #1D954E
tetradic
#4E1D95 #951D28 #64951D #1D958A
square
#4E1D95 #951D28 #64951D #1D958A
split-complementary
#4E1D95 #958A1D #28951D
monochromatic
#18092F #331362 #4E1D95 #6927C8 #8950DD

Accessibility & contrast

On white

10.86
#4E1D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E1D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D95
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D95#FFFFFF#000000##FFFFFF
##4E1D951.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#393F59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e1d95;
/* rgb */ color: rgb(78, 29, 149);
/* oklch */ color: oklch(38.2% 0.178 294.8);
Tailwind
colors: {
  custom: {
    50: '#8760b5',
    500: '#4e1d95',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d95;
$custom-light: #8760b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d95",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 149
  },
  "hsl": {
    "h": 264.5,
    "s": 67.416,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38194,
    "c": 0.17842,
    "h": 294.8
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#4E1D95
secondary
#91C04E
accent
#EA3DA4
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1D95

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

Preview Lab → · Contrast checker → · Palette generator →

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