#4E1E6C#4E1E6C

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

Color values

HEX#4E1E6C
RGBrgb(78, 30, 108)
HSLhsl(277, 57%, 27%)
HSVhsv(277, 72%, 42%)
CMYKcmyk(27.8%, 72.2%, 0%, 57.6%)
CIE-LABlab(22.41, 36.91, -36.03)
CIE-LCHlch(22.41, 51.58, 315.69°)
OKLaboklab(34.74% 0.0836 -0.1019)
OKLCHoklch(34.74% 0.132 309.4)
XYZxyz(6.3124, 3.6311, 14.5528)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E6C #3C6C1E
analogous
#271E6C #4E1E6C #6C1E63
triadic
#4E1E6C #6C4E1E #1E6C4E
tetradic
#4E1E6C #6C271E #3C6C1E #1E636C
square
#4E1E6C #6C271E #3C6C1E #1E636C
split-complementary
#4E1E6C #636C1E #1E6C27
monochromatic
#110718 #2B113C #4E1E6C #712B9C #923CC9

Accessibility & contrast

On white

12.17
#4E1E6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E1E6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E6C
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E6C#FFFFFF#000000##FFFFFF
##4E1E6C1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#0F366A
Tritanopia (blue-blind)
#4A2F42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1e6c;
/* rgb */ color: rgb(78, 30, 108);
/* oklch */ color: oklch(34.7% 0.132 309.4);
Tailwind
colors: {
  custom: {
    50: '#835e97',
    500: '#4e1e6c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e6c;
$custom-light: #835e97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e6c",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 108
  },
  "hsl": {
    "h": 276.923,
    "s": 56.522,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34738,
    "c": 0.13184,
    "h": 309.4
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#4E1E6C
secondary
#68A045
accent
#E04882
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E1E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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