#4E3982#4E3982

#4E3982 is a dark, moderate violet. Relative luminance 0.062; OKLCH L 40.6% C 0.118 H 293.7°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4E3982
RGBrgb(78, 57, 130)
HSLhsl(257, 39%, 37%)
HSVhsv(257, 56%, 51%)
CMYKcmyk(40%, 56.2%, 0%, 49%)
CIE-LABlab(29.81, 27.32, -38.11)
CIE-LCHlch(29.81, 46.89, 305.63°)
OKLaboklab(40.62% 0.0476 -0.1081)
OKLCHoklch(40.62% 0.118 293.7)
XYZxyz(8.6332, 6.1575, 21.8484)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3982 #6D8239
analogous
#394982 #4E3982 #733982
triadic
#4E3982 #824E39 #39824E
tetradic
#4E3982 #823949 #6D8239 #398273
square
#4E3982 #823949 #6D8239 #398273
split-complementary
#4E3982 #827339 #498239
monochromatic
#1B142D #342657 #4E3982 #684CAD #8A74C2

Accessibility & contrast

On white

9.41
#4E3982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E3982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3982
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3982#FFFFFF#000000##FFFFFF
##4E39821.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184784
Deuteranopia (green-blind)
#1D4580
Tritanopia (blue-blind)
#414858
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3982;
/* rgb */ color: rgb(78, 57, 130);
/* oklch */ color: oklch(40.6% 0.118 293.7);
Tailwind
colors: {
  custom: {
    50: '#8370a7',
    500: '#4e3982',
    950: '#000000',
  },
}
SCSS
$custom: #4e3982;
$custom-light: #8370a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3982",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 130
  },
  "hsl": {
    "h": 257.26,
    "s": 39.037,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40622,
    "c": 0.11812,
    "h": 293.7
  },
  "luminance": 0.06158
}

Semantic roles & 50–950 ramp

primary
#4E3982
secondary
#99AB6C
accent
#CF59AD
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3982

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

Preview Lab → · Contrast checker → · Palette generator →

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