#4E2B98#4E2B98

#4E2B98 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.167 H 291.8°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4E2B98
RGBrgb(78, 43, 152)
HSLhsl(259, 56%, 38%)
HSVhsv(259, 72%, 60%)
CMYKcmyk(48.7%, 71.7%, 0%, 40.4%)
CIE-LABlab(28.42, 41.98, -53.95)
CIE-LCHlch(28.42, 68.36, 307.88°)
OKLaboklab(40.14% 0.062 -0.1547)
OKLCHoklch(40.14% 0.167 291.8)
XYZxyz(9.6717, 5.6141, 30.2737)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B98 #75982B
analogous
#2B3E98 #4E2B98 #842B98
triadic
#4E2B98 #984E2B #2B984E
tetradic
#4E2B98 #982B3E #75982B #2B9884
square
#4E2B98 #982B3E #75982B #2B9884
split-complementary
#4E2B98 #98842B #3E982B
monochromatic
#1D1039 #361E68 #4E2B98 #6739C7 #8B69D5

Accessibility & contrast

On white

9.89
#4E2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B98
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B98#FFFFFF#000000##FFFFFF
##4E2B981.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#37475E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e2b98;
/* rgb */ color: rgb(78, 43, 152);
/* oklch */ color: oklch(40.1% 0.167 291.8);
Tailwind
colors: {
  custom: {
    50: '#8767b7',
    500: '#4e2b98',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b98;
$custom-light: #8767b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b98",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 259.266,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40142,
    "c": 0.16664,
    "h": 291.8
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#4E2B98
secondary
#9FBB64
accent
#DF49AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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