#4E2E9D#4E2E9D

#4E2E9D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.169 H 290.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#4E2E9D
RGBrgb(78, 46, 157)
HSLhsl(257, 55%, 40%)
HSVhsv(257, 71%, 62%)
CMYKcmyk(50.3%, 70.7%, 0%, 38.4%)
CIE-LABlab(29.43, 41.80, -55.35)
CIE-LCHlch(29.43, 69.36, 307.06°)
OKLaboklab(41% 0.0581 -0.1588)
OKLCHoklch(41% 0.169 290.1)
XYZxyz(10.2029, 6.0076, 32.5137)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E9D #7D9D2E
analogous
#2E469D #4E2E9D #852E9D
triadic
#4E2E9D #9D4E2E #2E9D4E
tetradic
#4E2E9D #9D2E46 #7D9D2E #2E9D85
square
#4E2E9D #9D2E46 #7D9D2E #2E9D85
split-complementary
#4E2E9D #9D852E #469D2E
monochromatic
#1F123E #36206E #4E2E9D #6841C7 #8D70D5

Accessibility & contrast

On white

9.54
#4E2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E9D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E9D#FFFFFF#000000##FFFFFF
##4E2E9D1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#334A62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2e9d;
/* rgb */ color: rgb(78, 46, 157);
/* oklch */ color: oklch(41.0% 0.169 290.1);
Tailwind
colors: {
  custom: {
    50: '#8769bb',
    500: '#4e2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e9d;
$custom-light: #8769bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e9d",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 257.297,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40998,
    "c": 0.16911,
    "h": 290.1
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#4E2E9D
secondary
#A5BD6A
accent
#DE4AB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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