#4E298A#4E298A

#4E298A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.152 H 296.0°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4E298A
RGBrgb(78, 41, 138)
HSLhsl(263, 54%, 35%)
HSVhsv(263, 70%, 54%)
CMYKcmyk(43.5%, 70.3%, 0%, 45.9%)
CIE-LABlab(26.85, 39.08, -47.87)
CIE-LCHlch(26.85, 61.80, 309.23°)
OKLaboklab(38.66% 0.0666 -0.1368)
OKLCHoklch(38.66% 0.152 296)
XYZxyz(8.5211, 5.0404, 24.5638)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E298A #658A29
analogous
#29348A #4E298A #7F298A
triadic
#4E298A #8A4E29 #298A4E
tetradic
#4E298A #8A2934 #658A29 #298A7F
square
#4E298A #8A2934 #658A29 #298A7F
split-complementary
#4E298A #8A7F29 #348A29
monochromatic
#190D2C #331B5B #4E298A #6937B9 #895ECF

Accessibility & contrast

On white

10.46
#4E298A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E298A
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E298A#FFFFFF#000000##FFFFFF
##4E298A1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#3E4156
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e298a;
/* rgb */ color: rgb(78, 41, 138);
/* oklch */ color: oklch(38.7% 0.152 296.0);
Tailwind
colors: {
  custom: {
    50: '#8566ad',
    500: '#4e298a',
    950: '#000000',
  },
}
SCSS
$custom: #4e298a;
$custom-light: #8566ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e298a",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 262.887,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38656,
    "c": 0.15216,
    "h": 296
  },
  "luminance": 0.05041
}

Semantic roles & 50–950 ramp

primary
#4E298A
secondary
#92B55A
accent
#DE4AA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E298A

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

Preview Lab → · Contrast checker → · Palette generator →

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