#4E2C7F#4E2C7F

#4E2C7F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.134 H 298.7°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4E2C7F
RGBrgb(78, 44, 127)
HSLhsl(265, 49%, 34%)
HSVhsv(265, 65%, 50%)
CMYKcmyk(38.6%, 65.4%, 0%, 50.2%)
CIE-LABlab(26.60, 34.33, -41.39)
CIE-LCHlch(26.60, 53.77, 309.67°)
OKLaboklab(38.21% 0.0645 -0.1178)
OKLCHoklch(38.21% 0.134 298.7)
XYZxyz(7.8724, 4.9533, 20.6159)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2C7F #5D7F2C
analogous
#2C337F #4E2C7F #772C7F
triadic
#4E2C7F #7F4E2C #2C7F4E
tetradic
#4E2C7F #7F2C33 #5D7F2C #2C7F77
square
#4E2C7F #7F2C33 #5D7F2C #2C7F77
split-complementary
#4E2C7F #7F772C #337F2C
monochromatic
#160D24 #321C52 #4E2C7F #6A3CAC #895EC7

Accessibility & contrast

On white

10.55
#4E2C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2C7F
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2C7F#FFFFFF#000000##FFFFFF
##4E2C7F1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#043E7D
Tritanopia (blue-blind)
#433E51
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2c7f;
/* rgb */ color: rgb(78, 44, 127);
/* oklch */ color: oklch(38.2% 0.134 298.7);
Tailwind
colors: {
  custom: {
    50: '#8467a5',
    500: '#4e2c7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2c7f;
$custom-light: #8467a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2c7f",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 264.578,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38206,
    "c": 0.13427,
    "h": 298.7
  },
  "luminance": 0.04953
}

Semantic roles & 50–950 ramp

primary
#4E2C7F
secondary
#8BAD59
accent
#D850A0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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