#4E298F#4E298F

#4E298F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.158 H 294.5°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4E298F
RGBrgb(78, 41, 143)
HSLhsl(262, 55%, 36%)
HSVhsv(262, 71%, 56%)
CMYKcmyk(45.5%, 71.3%, 0%, 43.9%)
CIE-LABlab(27.27, 40.49, -50.30)
CIE-LCHlch(27.27, 64.57, 308.83°)
OKLaboklab(39.08% 0.0657 -0.1439)
OKLCHoklch(39.08% 0.158 294.5)
XYZxyz(8.8914, 5.1885, 26.5143)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E298F #6A8F29
analogous
#29378F #4E298F #81298F
triadic
#4E298F #8F4E29 #298F4E
tetradic
#4E298F #8F2937 #6A8F29 #298F81
square
#4E298F #8F2937 #6A8F29 #298F81
split-complementary
#4E298F #8F8129 #378F29
monochromatic
#1A0E30 #341B5F #4E298F #6837BF #8A61D2

Accessibility & contrast

On white

10.31
#4E298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E298F
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E298F#FFFFFF#000000##FFFFFF
##4E298F1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#3C4259
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e298f;
/* rgb */ color: rgb(78, 41, 143);
/* oklch */ color: oklch(39.1% 0.158 294.5);
Tailwind
colors: {
  custom: {
    50: '#8666b1',
    500: '#4e298f',
    950: '#000000',
  },
}
SCSS
$custom: #4e298f;
$custom-light: #8666b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e298f",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 261.765,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39083,
    "c": 0.15823,
    "h": 294.5
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#4E298F
secondary
#96B75C
accent
#DF49A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E298F

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

Preview Lab → · Contrast checker → · Palette generator →

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