#4E2A9C#4E2A9C

#4E2A9C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.173 H 291.1°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#4E2A9C
RGBrgb(78, 42, 156)
HSLhsl(259, 58%, 39%)
HSVhsv(259, 73%, 61%)
CMYKcmyk(50%, 73.1%, 0%, 38.8%)
CIE-LABlab(28.58, 43.65, -56.13)
CIE-LCHlch(28.58, 71.11, 307.87°)
OKLaboklab(40.37% 0.0621 -0.1611)
OKLCHoklch(40.37% 0.173 291.1)
XYZxyz(9.9689, 5.6755, 32.0163)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A9C #789C2A
analogous
#2A3F9C #4E2A9C #872A9C
triadic
#4E2A9C #9C4E2A #2A9C4E
tetradic
#4E2A9C #9C2A3F #789C2A #2A9C87
square
#4E2A9C #9C2A3F #789C2A #2A9C87
split-complementary
#4E2A9C #9C872A #3F9C2A
monochromatic
#1E103C #361D6C #4E2A9C #6739CA #8C6AD7

Accessibility & contrast

On white

9.84
#4E2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A9C
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A9C#FFFFFF#000000##FFFFFF
##4E2A9C1.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#344860
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e2a9c;
/* rgb */ color: rgb(78, 42, 156);
/* oklch */ color: oklch(40.4% 0.173 291.1);
Tailwind
colors: {
  custom: {
    50: '#8767ba',
    500: '#4e2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a9c;
$custom-light: #8767ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a9c",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 258.947,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40365,
    "c": 0.17263,
    "h": 291.1
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#4E2A9C
secondary
#A1BD65
accent
#E147B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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