#4E1D6D#4E1D6D

#4E1D6D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.134 H 309.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4E1D6D
RGBrgb(78, 29, 109)
HSLhsl(277, 58%, 27%)
HSVhsv(277, 73%, 43%)
CMYKcmyk(28.4%, 73.4%, 0%, 57.3%)
CIE-LABlab(22.31, 37.65, -36.84)
CIE-LCHlch(22.31, 52.68, 315.62°)
OKLaboklab(34.69% 0.0847 -0.1043)
OKLCHoklch(34.69% 0.134 309.1)
XYZxyz(6.3410, 3.6027, 14.8264)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D6D #3C6D1D
analogous
#261D6D #4E1D6D #6D1D64
triadic
#4E1D6D #6D4E1D #1D6D4E
tetradic
#4E1D6D #6D261D #3C6D1D #1D646D
square
#4E1D6D #6D261D #3C6D1D #1D646D
split-complementary
#4E1D6D #646D1D #1D6D26
monochromatic
#110618 #2B103D #4E1D6D #712A9D #923ACB

Accessibility & contrast

On white

12.21
#4E1D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E1D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D6D
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D6D#FFFFFF#000000##FFFFFF
##4E1D6D1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#0C366B
Tritanopia (blue-blind)
#492F43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1d6d;
/* rgb */ color: rgb(78, 29, 109);
/* oklch */ color: oklch(34.7% 0.134 309.1);
Tailwind
colors: {
  custom: {
    50: '#835e97',
    500: '#4e1d6d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d6d;
$custom-light: #835e97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d6d",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 109
  },
  "hsl": {
    "h": 276.75,
    "s": 57.971,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3469,
    "c": 0.13434,
    "h": 309.1
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#4E1D6D
secondary
#68A244
accent
#E14783
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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