#4E2E9F#4E2E9F

#4E2E9F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.172 H 289.7°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4E2E9F
RGBrgb(78, 46, 159)
HSLhsl(257, 55%, 40%)
HSVhsv(257, 71%, 62%)
CMYKcmyk(50.9%, 71.1%, 0%, 37.6%)
CIE-LABlab(29.60, 42.39, -56.28)
CIE-LCHlch(29.60, 70.46, 306.98°)
OKLaboklab(41.18% 0.0578 -0.1615)
OKLCHoklch(41.18% 0.172 289.7)
XYZxyz(10.3751, 6.0765, 33.4204)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E9F #7F9F2E
analogous
#2E479F #4E2E9F #862E9F
triadic
#4E2E9F #9F4E2E #2E9F4E
tetradic
#4E2E9F #9F2E47 #7F9F2E #2E9F86
square
#4E2E9F #9F2E47 #7F9F2E #2E9F86
split-complementary
#4E2E9F #9F862E #479F2E
monochromatic
#1F1340 #372070 #4E2E9F #6842C8 #8E71D6

Accessibility & contrast

On white

9.48
#4E2E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E2E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E9F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E9F#FFFFFF#000000##FFFFFF
##4E2E9F1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#324B63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2e9f;
/* rgb */ color: rgb(78, 46, 159);
/* oklch */ color: oklch(41.2% 0.172 289.7);
Tailwind
colors: {
  custom: {
    50: '#8869bc',
    500: '#4e2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e9f;
$custom-light: #8869bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e9f",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 256.991,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41175,
    "c": 0.17154,
    "h": 289.7
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#4E2E9F
secondary
#A6BE6B
accent
#DE49B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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