#4E298E#4E298E

#4E298E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.157 H 294.8°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4E298E
RGBrgb(78, 41, 142)
HSLhsl(262, 55%, 36%)
HSVhsv(262, 71%, 56%)
CMYKcmyk(45.1%, 71.1%, 0%, 44.3%)
CIE-LABlab(27.18, 40.21, -49.82)
CIE-LCHlch(27.18, 64.02, 308.91°)
OKLaboklab(39% 0.0659 -0.1425)
OKLCHoklch(39% 0.157 294.8)
XYZxyz(8.8160, 5.1583, 26.1171)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E298E #698E29
analogous
#29368E #4E298E #80298E
triadic
#4E298E #8E4E29 #298E4E
tetradic
#4E298E #8E2936 #698E29 #298E80
square
#4E298E #8E2936 #698E29 #298E80
split-complementary
#4E298E #8E8029 #368E29
monochromatic
#1A0E2F #341B5F #4E298E #6837BD #8A60D1

Accessibility & contrast

On white

10.34
#4E298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E298E
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E298E#FFFFFF#000000##FFFFFF
##4E298E1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#3C4258
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e298e;
/* rgb */ color: rgb(78, 41, 142);
/* oklch */ color: oklch(39.0% 0.157 294.8);
Tailwind
colors: {
  custom: {
    50: '#8666b0',
    500: '#4e298e',
    950: '#000000',
  },
}
SCSS
$custom: #4e298e;
$custom-light: #8666b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e298e",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 261.98,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38997,
    "c": 0.15702,
    "h": 294.8
  },
  "luminance": 0.05159
}

Semantic roles & 50–950 ramp

primary
#4E298E
secondary
#96B75C
accent
#DF49A8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E298E

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

Preview Lab → · Contrast checker → · Palette generator →

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