#4E2C8A#4E2C8A

#4E2C8A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.148 H 295.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4E2C8A
RGBrgb(78, 44, 138)
HSLhsl(262, 52%, 36%)
HSVhsv(262, 68%, 54%)
CMYKcmyk(43.5%, 68.1%, 0%, 45.9%)
CIE-LABlab(27.45, 37.43, -46.89)
CIE-LCHlch(27.45, 60.00, 308.59°)
OKLaboklab(39.09% 0.0633 -0.134)
OKLCHoklch(39.09% 0.148 295.3)
XYZxyz(8.6288, 5.2558, 24.5997)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2C8A #688A2C
analogous
#2C398A #4E2C8A #7D2C8A
triadic
#4E2C8A #8A4E2C #2C8A4E
tetradic
#4E2C8A #8A2C39 #688A2C #2C8A7D
square
#4E2C8A #8A2C39 #688A2C #2C8A7D
split-complementary
#4E2C8A #8A7D2C #398A2C
monochromatic
#1A0E2D #341D5C #4E2C8A #683BB8 #8A63CD

Accessibility & contrast

On white

10.24
#4E2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2C8A
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2C8A#FFFFFF#000000##FFFFFF
##4E2C8A1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#3E4257
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2c8a;
/* rgb */ color: rgb(78, 44, 138);
/* oklch */ color: oklch(39.1% 0.148 295.3);
Tailwind
colors: {
  custom: {
    50: '#8567ad',
    500: '#4e2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2c8a;
$custom-light: #8567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2c8a",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 261.702,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39088,
    "c": 0.14815,
    "h": 295.3
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

primary
#4E2C8A
secondary
#95B45E
accent
#DB4DA8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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