#4E1D6C#4E1D6C

#4E1D6C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.133 H 309.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#4E1D6C
RGBrgb(78, 29, 108)
HSLhsl(277, 58%, 27%)
HSVhsv(277, 73%, 42%)
CMYKcmyk(27.8%, 73.1%, 0%, 57.6%)
CIE-LABlab(22.24, 37.41, -36.31)
CIE-LCHlch(22.24, 52.13, 315.85°)
OKLaboklab(34.61% 0.0848 -0.1028)
OKLCHoklch(34.61% 0.133 309.5)
XYZxyz(6.2875, 3.5813, 14.5445)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D6C #3B6C1D
analogous
#271D6C #4E1D6C #6C1D63
triadic
#4E1D6C #6C4E1D #1D6C4E
tetradic
#4E1D6C #6C271D #3B6C1D #1D636C
square
#4E1D6C #6C271D #3B6C1D #1D636C
split-complementary
#4E1D6C #636C1D #1D6C27
monochromatic
#110618 #2B103C #4E1D6C #712A9C #9339CA

Accessibility & contrast

On white

12.24
#4E1D6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1D6C
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D6C#FFFFFF#000000##FFFFFF
##4E1D6C1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#0E366A
Tritanopia (blue-blind)
#4A2E42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1d6c;
/* rgb */ color: rgb(78, 29, 108);
/* oklch */ color: oklch(34.6% 0.133 309.5);
Tailwind
colors: {
  custom: {
    50: '#835d97',
    500: '#4e1d6c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d6c;
$custom-light: #835d97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d6c",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 108
  },
  "hsl": {
    "h": 277.215,
    "s": 57.664,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34612,
    "c": 0.13323,
    "h": 309.5
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#4E1D6C
secondary
#67A144
accent
#E14781
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1D6C

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

Preview Lab → · Contrast checker → · Palette generator →

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