#4E2D98#4E2D98

#4E2D98 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.164 H 291.4°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4E2D98
RGBrgb(78, 45, 152)
HSLhsl(259, 54%, 39%)
HSVhsv(259, 70%, 60%)
CMYKcmyk(48.7%, 70.4%, 0%, 40.4%)
CIE-LABlab(28.81, 40.90, -53.32)
CIE-LCHlch(28.81, 67.20, 307.49°)
OKLaboklab(40.42% 0.06 -0.1528)
OKLCHoklch(40.42% 0.164 291.4)
XYZxyz(9.7462, 5.7631, 30.2985)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D98 #77982D
analogous
#2D4198 #4E2D98 #832D98
triadic
#4E2D98 #984E2D #2D984E
tetradic
#4E2D98 #982D41 #77982D #2D9883
square
#4E2D98 #982D41 #77982D #2D9883
split-complementary
#4E2D98 #98832D #41982D
monochromatic
#1E113A #361F69 #4E2D98 #673DC5 #8C6CD3

Accessibility & contrast

On white

9.76
#4E2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D98
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D98#FFFFFF#000000##FFFFFF
##4E2D981.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#36485F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2d98;
/* rgb */ color: rgb(78, 45, 152);
/* oklch */ color: oklch(40.4% 0.164 291.4);
Tailwind
colors: {
  custom: {
    50: '#8769b7',
    500: '#4e2d98',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d98;
$custom-light: #8769b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d98",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 258.505,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4042,
    "c": 0.16419,
    "h": 291.4
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#4E2D98
secondary
#A1BA66
accent
#DE4AB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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