#4E2B9F#4E2B9F

#4E2B9F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.175 H 290.2°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#4E2B9F
RGBrgb(78, 43, 159)
HSLhsl(258, 57%, 40%)
HSVhsv(258, 73%, 62%)
CMYKcmyk(50.9%, 73%, 0%, 37.6%)
CIE-LABlab(29.03, 43.99, -57.22)
CIE-LCHlch(29.03, 72.17, 307.55°)
OKLaboklab(40.77% 0.0605 -0.1643)
OKLCHoklch(40.77% 0.175 290.2)
XYZxyz(10.2620, 5.8502, 33.3827)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B9F #7C9F2B
analogous
#2B429F #4E2B9F #882B9F
triadic
#4E2B9F #9F4E2B #2B9F4E
tetradic
#4E2B9F #9F2B42 #7C9F2B #2B9F88
square
#4E2B9F #9F2B42 #7C9F2B #2B9F88
split-complementary
#4E2B9F #9F882B #429F2B
monochromatic
#1F113F #361E6F #4E2B9F #673DCA #8D6DD7

Accessibility & contrast

On white

9.68
#4E2B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E2B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B9F
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B9F#FFFFFF#000000##FFFFFF
##4E2B9F1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#324A62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2b9f;
/* rgb */ color: rgb(78, 43, 159);
/* oklch */ color: oklch(40.8% 0.175 290.2);
Tailwind
colors: {
  custom: {
    50: '#8868bc',
    500: '#4e2b9f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b9f;
$custom-light: #8868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b9f",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 258.103,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40768,
    "c": 0.17506,
    "h": 290.2
  },
  "luminance": 0.05851
}

Semantic roles & 50–950 ramp

primary
#4E2B9F
secondary
#A4BE67
accent
#E147B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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