#4E3882#4E3882

#4E3882 is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.4% C 0.120 H 294.1°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4E3882
RGBrgb(78, 56, 130)
HSLhsl(258, 40%, 36%)
HSVhsv(258, 57%, 51%)
CMYKcmyk(40%, 56.9%, 0%, 49%)
CIE-LABlab(29.56, 27.94, -38.50)
CIE-LCHlch(29.56, 47.58, 305.97°)
OKLaboklab(40.44% 0.0489 -0.1093)
OKLCHoklch(40.44% 0.12 294.1)
XYZxyz(8.5843, 6.0596, 21.8321)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3882 #6C8238
analogous
#384782 #4E3882 #733882
triadic
#4E3882 #824E38 #38824E
tetradic
#4E3882 #823847 #6C8238 #388273
square
#4E3882 #823847 #6C8238 #388273
split-complementary
#4E3882 #827338 #478238
monochromatic
#1B132C #342657 #4E3882 #684AAD #8A72C2

Accessibility & contrast

On white

9.49
#4E3882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E3882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3882
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3882#FFFFFF#000000##FFFFFF
##4E38821.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154684
Deuteranopia (green-blind)
#1B4480
Tritanopia (blue-blind)
#414757
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3882;
/* rgb */ color: rgb(78, 56, 130);
/* oklch */ color: oklch(40.4% 0.120 294.1);
Tailwind
colors: {
  custom: {
    50: '#836fa7',
    500: '#4e3882',
    950: '#000000',
  },
}
SCSS
$custom: #4e3882;
$custom-light: #836fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3882",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 130
  },
  "hsl": {
    "h": 257.838,
    "s": 39.785,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40441,
    "c": 0.11973,
    "h": 294.1
  },
  "luminance": 0.0606
}

Semantic roles & 50–950 ramp

primary
#4E3882
secondary
#98AB6B
accent
#D058AC
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3882

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

Preview Lab → · Contrast checker → · Palette generator →

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