#4E2C7C#4E2C7C

#4E2C7C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.0% C 0.130 H 299.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4E2C7C
RGBrgb(78, 44, 124)
HSLhsl(266, 48%, 33%)
HSVhsv(266, 65%, 49%)
CMYKcmyk(37.1%, 64.5%, 0%, 51.4%)
CIE-LABlab(26.38, 33.49, -39.86)
CIE-LCHlch(26.38, 52.06, 310.04°)
OKLaboklab(37.97% 0.0647 -0.1133)
OKLCHoklch(37.97% 0.13 299.7)
XYZxyz(7.6798, 4.8762, 19.6015)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2C7C #5A7C2C
analogous
#2C327C #4E2C7C #762C7C
triadic
#4E2C7C #7C4E2C #2C7C4E
tetradic
#4E2C7C #7C2C32 #5A7C2C #2C7C76
square
#4E2C7C #7C2C32 #5A7C2C #2C7C76
split-complementary
#4E2C7C #7C762C #327C2C
monochromatic
#150C22 #321C4F #4E2C7C #6A3CA9 #895DC5

Accessibility & contrast

On white

10.63
#4E2C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E2C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2C7C
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2C7C#FFFFFF#000000##FFFFFF
##4E2C7C1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#0C3E7A
Tritanopia (blue-blind)
#443D4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2c7c;
/* rgb */ color: rgb(78, 44, 124);
/* oklch */ color: oklch(38.0% 0.130 299.7);
Tailwind
colors: {
  custom: {
    50: '#8367a2',
    500: '#4e2c7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2c7c;
$custom-light: #8367a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2c7c",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 265.5,
    "s": 47.619,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37974,
    "c": 0.13045,
    "h": 299.7
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#4E2C7C
secondary
#88AC58
accent
#D7519E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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