#4E2896#4E2896

#4E2896 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.168 H 292.9°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4E2896
RGBrgb(78, 40, 150)
HSLhsl(261, 58%, 37%)
HSVhsv(261, 73%, 59%)
CMYKcmyk(48%, 73.3%, 0%, 41.2%)
CIE-LABlab(27.68, 42.98, -53.93)
CIE-LCHlch(27.68, 68.97, 308.55°)
OKLaboklab(39.56% 0.0653 -0.1546)
OKLCHoklch(39.56% 0.168 292.9)
XYZxyz(9.4042, 5.3390, 29.3833)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2896 #709628
analogous
#283996 #4E2896 #852896
triadic
#4E2896 #964E28 #28964E
tetradic
#4E2896 #962839 #709628 #289685
square
#4E2896 #962839 #709628 #289685
split-complementary
#4E2896 #968528 #399628
monochromatic
#1C0E35 #351B66 #4E2896 #6735C6 #8B63D5

Accessibility & contrast

On white

10.16
#4E2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E2896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2896
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2896#FFFFFF#000000##FFFFFF
##4E28961.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#38455C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2896;
/* rgb */ color: rgb(78, 40, 150);
/* oklch */ color: oklch(39.6% 0.168 292.9);
Tailwind
colors: {
  custom: {
    50: '#8766b6',
    500: '#4e2896',
    950: '#000000',
  },
}
SCSS
$custom: #4e2896;
$custom-light: #8766b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2896",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 260.727,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39564,
    "c": 0.16782,
    "h": 292.9
  },
  "luminance": 0.05339
}

Semantic roles & 50–950 ramp

primary
#4E2896
secondary
#9BBB5F
accent
#E147AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2896

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

Preview Lab → · Contrast checker → · Palette generator →

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