#4E2C7A#4E2C7A

#4E2C7A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.128 H 300.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#4E2C7A
RGBrgb(78, 44, 122)
HSLhsl(266, 47%, 33%)
HSVhsv(266, 64%, 48%)
CMYKcmyk(36.1%, 63.9%, 0%, 52.2%)
CIE-LABlab(26.23, 32.94, -38.83)
CIE-LCHlch(26.23, 50.92, 310.30°)
OKLaboklab(37.82% 0.0648 -0.1102)
OKLCHoklch(37.82% 0.128 300.5)
XYZxyz(7.5546, 4.8262, 18.9421)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2C7A #587A2C
analogous
#2C317A #4E2C7A #752C7A
triadic
#4E2C7A #7A4E2C #2C7A4E
tetradic
#4E2C7A #7A2C31 #587A2C #2C7A75
square
#4E2C7A #7A2C31 #587A2C #2C7A75
split-complementary
#4E2C7A #7A752C #317A2C
monochromatic
#140C20 #311C4D #4E2C7A #6B3CA7 #8A5CC4

Accessibility & contrast

On white

10.69
#4E2C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E2C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2C7A
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2C7A#FFFFFF#000000##FFFFFF
##4E2C7A1.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#103E78
Tritanopia (blue-blind)
#453D4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2c7a;
/* rgb */ color: rgb(78, 44, 122);
/* oklch */ color: oklch(37.8% 0.128 300.5);
Tailwind
colors: {
  custom: {
    50: '#8367a1',
    500: '#4e2c7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2c7a;
$custom-light: #8367a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2c7a",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 266.154,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37822,
    "c": 0.12788,
    "h": 300.5
  },
  "luminance": 0.04826
}

Semantic roles & 50–950 ramp

primary
#4E2C7A
secondary
#86AA57
accent
#D7519C
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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