#4E2D96#4E2D96

#4E2D96 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.162 H 291.9°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4E2D96
RGBrgb(78, 45, 150)
HSLhsl(259, 54%, 38%)
HSVhsv(259, 70%, 59%)
CMYKcmyk(48%, 70%, 0%, 41.2%)
CIE-LABlab(28.64, 40.32, -52.37)
CIE-LCHlch(28.64, 66.09, 307.59°)
OKLaboklab(40.25% 0.0604 -0.15)
OKLCHoklch(40.25% 0.162 291.9)
XYZxyz(9.5838, 5.6981, 29.4431)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D96 #75962D
analogous
#2D4096 #4E2D96 #822D96
triadic
#4E2D96 #964E2D #2D964E
tetradic
#4E2D96 #962D40 #75962D #2D9682
square
#4E2D96 #962D40 #75962D #2D9682
split-complementary
#4E2D96 #96822D #40962D
monochromatic
#1D1138 #361F67 #4E2D96 #673CC4 #8B6BD3

Accessibility & contrast

On white

9.81
#4E2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2D96
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D96#FFFFFF#000000##FFFFFF
##4E2D961.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#38475E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2d96;
/* rgb */ color: rgb(78, 45, 150);
/* oklch */ color: oklch(40.2% 0.162 291.9);
Tailwind
colors: {
  custom: {
    50: '#8668b6',
    500: '#4e2d96',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d96;
$custom-light: #8668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d96",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 258.857,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40246,
    "c": 0.16173,
    "h": 291.9
  },
  "luminance": 0.05698
}

Semantic roles & 50–950 ramp

primary
#4E2D96
secondary
#9FB965
accent
#DD4BAF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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