#4E2A9F#4E2A9F

#4E2A9F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.176 H 290.4°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#4E2A9F
RGBrgb(78, 42, 159)
HSLhsl(258, 58%, 39%)
HSVhsv(258, 74%, 62%)
CMYKcmyk(50.9%, 73.6%, 0%, 37.6%)
CIE-LABlab(28.85, 44.51, -57.52)
CIE-LCHlch(28.85, 72.73, 307.73°)
OKLaboklab(40.64% 0.0614 -0.1651)
OKLCHoklch(40.64% 0.176 290.4)
XYZxyz(10.2261, 5.7784, 33.3707)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A9F #7B9F2A
analogous
#2A409F #4E2A9F #892A9F
triadic
#4E2A9F #9F4E2A #2A9F4E
tetradic
#4E2A9F #9F2A40 #7B9F2A #2A9F89
square
#4E2A9F #9F2A40 #7B9F2A #2A9F89
split-complementary
#4E2A9F #9F892A #409F2A
monochromatic
#1F103E #361D6F #4E2A9F #673BCB #8D6BD8

Accessibility & contrast

On white

9.74
#4E2A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E2A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A9F
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A9F#FFFFFF#000000##FFFFFF
##4E2A9F1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#324962
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2a9f;
/* rgb */ color: rgb(78, 42, 159);
/* oklch */ color: oklch(40.6% 0.176 290.4);
Tailwind
colors: {
  custom: {
    50: '#8867bc',
    500: '#4e2a9f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a9f;
$custom-light: #8867bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a9f",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 258.462,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40637,
    "c": 0.17619,
    "h": 290.4
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#4E2A9F
secondary
#A3BF66
accent
#E146B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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