#4E3782#4E3782

#4E3782 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.3% C 0.121 H 294.5°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4E3782
RGBrgb(78, 55, 130)
HSLhsl(258, 41%, 36%)
HSVhsv(258, 58%, 51%)
CMYKcmyk(40%, 57.7%, 0%, 49%)
CIE-LABlab(29.32, 28.57, -38.89)
CIE-LCHlch(29.32, 48.26, 306.30°)
OKLaboklab(40.26% 0.0502 -0.1104)
OKLCHoklch(40.26% 0.121 294.5)
XYZxyz(8.5363, 5.9636, 21.8161)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3782 #6B8237
analogous
#374682 #4E3782 #743782
triadic
#4E3782 #824E37 #37824E
tetradic
#4E3782 #823746 #6B8237 #378274
square
#4E3782 #823746 #6B8237 #378274
split-complementary
#4E3782 #827437 #468237
monochromatic
#1A132C #342557 #4E3782 #6849AD #8A71C3

Accessibility & contrast

On white

9.58
#4E3782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E3782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3782
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3782#FFFFFF#000000##FFFFFF
##4E37821.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124685
Deuteranopia (green-blind)
#194480
Tritanopia (blue-blind)
#414757
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3782;
/* rgb */ color: rgb(78, 55, 130);
/* oklch */ color: oklch(40.3% 0.121 294.5);
Tailwind
colors: {
  custom: {
    50: '#836ea7',
    500: '#4e3782',
    950: '#000000',
  },
}
SCSS
$custom: #4e3782;
$custom-light: #836ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3782",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 130
  },
  "hsl": {
    "h": 258.4,
    "s": 40.541,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40263,
    "c": 0.12132,
    "h": 294.5
  },
  "luminance": 0.05964
}

Semantic roles & 50–950 ramp

primary
#4E3782
secondary
#97AB69
accent
#D057AB
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3782

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

Preview Lab → · Contrast checker → · Palette generator →

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