#4E2D7E#4E2D7E

#4E2D7E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.131 H 298.8°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#4E2D7E
RGBrgb(78, 45, 126)
HSLhsl(264, 47%, 34%)
HSVhsv(264, 64%, 49%)
CMYKcmyk(38.1%, 64.3%, 0%, 50.6%)
CIE-LABlab(26.74, 33.47, -40.54)
CIE-LCHlch(26.74, 52.57, 309.54°)
OKLaboklab(38.29% 0.0633 -0.1152)
OKLCHoklch(38.29% 0.131 298.8)
XYZxyz(7.8452, 5.0027, 20.2869)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D7E #5D7E2D
analogous
#2D357E #4E2D7E #762D7E
triadic
#4E2D7E #7E4E2D #2D7E4E
tetradic
#4E2D7E #7E2D35 #5D7E2D #2D7E76
square
#4E2D7E #7E2D35 #5D7E2D #2D7E76
split-complementary
#4E2D7E #7E762D #357E2D
monochromatic
#160D24 #321D51 #4E2D7E #6A3DAB #895FC6

Accessibility & contrast

On white

10.50
#4E2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D7E
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D7E#FFFFFF#000000##FFFFFF
##4E2D7E1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#0A3E7C
Tritanopia (blue-blind)
#433F51
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2d7e;
/* rgb */ color: rgb(78, 45, 126);
/* oklch */ color: oklch(38.3% 0.131 298.8);
Tailwind
colors: {
  custom: {
    50: '#8368a4',
    500: '#4e2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d7e;
$custom-light: #8368a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d7e",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 264.444,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38285,
    "c": 0.13149,
    "h": 298.8
  },
  "luminance": 0.05003
}

Semantic roles & 50–950 ramp

primary
#4E2D7E
secondary
#8BAC5A
accent
#D751A0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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