#4E2D95#4E2D95

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

Color values

HEX#4E2D95
RGBrgb(78, 45, 149)
HSLhsl(259, 54%, 38%)
HSVhsv(259, 70%, 58%)
CMYKcmyk(47.7%, 69.8%, 0%, 41.6%)
CIE-LABlab(28.55, 40.03, -51.89)
CIE-LCHlch(28.55, 65.54, 307.64°)
OKLaboklab(40.16% 0.0606 -0.1486)
OKLCHoklch(40.16% 0.161 292.2)
XYZxyz(9.5036, 5.6661, 29.0209)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D95 #74952D
analogous
#2D4095 #4E2D95 #822D95
triadic
#4E2D95 #954E2D #2D954E
tetradic
#4E2D95 #952D40 #74952D #2D9582
square
#4E2D95 #952D40 #74952D #2D9582
split-complementary
#4E2D95 #95822D #40952D
monochromatic
#1D1137 #351F66 #4E2D95 #673BC4 #8B6AD2

Accessibility & contrast

On white

9.84
#4E2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D95
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D95#FFFFFF#000000##FFFFFF
##4E2D951.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#38475D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e2d95;
/* rgb */ color: rgb(78, 45, 149);
/* oklch */ color: oklch(40.2% 0.161 292.2);
Tailwind
colors: {
  custom: {
    50: '#8668b5',
    500: '#4e2d95',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d95;
$custom-light: #8668b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d95",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 259.038,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4016,
    "c": 0.1605,
    "h": 292.2
  },
  "luminance": 0.05666
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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