#4E298B#4E298B

#4E298B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.153 H 295.7°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#4E298B
RGBrgb(78, 41, 139)
HSLhsl(263, 54%, 35%)
HSVhsv(263, 71%, 55%)
CMYKcmyk(43.9%, 70.5%, 0%, 45.5%)
CIE-LABlab(26.93, 39.36, -48.36)
CIE-LCHlch(26.93, 62.36, 309.14°)
OKLaboklab(38.74% 0.0664 -0.1383)
OKLCHoklch(38.74% 0.153 295.7)
XYZxyz(8.5938, 5.0695, 24.9468)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E298B #668B29
analogous
#29358B #4E298B #7F298B
triadic
#4E298B #8B4E29 #298B4E
tetradic
#4E298B #8B2935 #668B29 #298B7F
square
#4E298B #8B2935 #668B29 #298B7F
split-complementary
#4E298B #8B7F29 #358B29
monochromatic
#190D2C #331B5C #4E298B #6937BA #895FD0

Accessibility & contrast

On white

10.43
#4E298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E298B
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E298B#FFFFFF#000000##FFFFFF
##4E298B1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#3E4156
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e298b;
/* rgb */ color: rgb(78, 41, 139);
/* oklch */ color: oklch(38.7% 0.153 295.7);
Tailwind
colors: {
  custom: {
    50: '#8566ae',
    500: '#4e298b',
    950: '#000000',
  },
}
SCSS
$custom: #4e298b;
$custom-light: #8566ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e298b",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 262.653,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38741,
    "c": 0.15338,
    "h": 295.7
  },
  "luminance": 0.0507
}

Semantic roles & 50–950 ramp

primary
#4E298B
secondary
#93B55B
accent
#DE4AA6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E298B

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

Preview Lab → · Contrast checker → · Palette generator →

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