#4E298C#4E298C

#4E298C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.155 H 295.4°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4E298C
RGBrgb(78, 41, 140)
HSLhsl(262, 55%, 35%)
HSVhsv(262, 71%, 55%)
CMYKcmyk(44.3%, 70.7%, 0%, 45.1%)
CIE-LABlab(27.01, 39.65, -48.85)
CIE-LCHlch(27.01, 62.91, 309.06°)
OKLaboklab(38.83% 0.0663 -0.1397)
OKLCHoklch(38.83% 0.155 295.4)
XYZxyz(8.6672, 5.0988, 25.3334)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E298C #678C29
analogous
#29368C #4E298C #7F298C
triadic
#4E298C #8C4E29 #298C4E
tetradic
#4E298C #8C2936 #678C29 #298C7F
square
#4E298C #8C2936 #678C29 #298C7F
split-complementary
#4E298C #8C7F29 #368C29
monochromatic
#190D2D #341B5D #4E298C #6837BB #895FD0

Accessibility & contrast

On white

10.40
#4E298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E298C
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E298C#FFFFFF#000000##FFFFFF
##4E298C1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#3D4157
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e298c;
/* rgb */ color: rgb(78, 41, 140);
/* oklch */ color: oklch(38.8% 0.155 295.4);
Tailwind
colors: {
  custom: {
    50: '#8566ae',
    500: '#4e298c',
    950: '#000000',
  },
}
SCSS
$custom: #4e298c;
$custom-light: #8566ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e298c",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 262.424,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38826,
    "c": 0.1546,
    "h": 295.4
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

primary
#4E298C
secondary
#94B65B
accent
#DE4AA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E298C

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

Preview Lab → · Contrast checker → · Palette generator →

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