#4E368B#4E368B

#4E368B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.8% C 0.135 H 292.4°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4E368B
RGBrgb(78, 54, 139)
HSLhsl(257, 44%, 38%)
HSVhsv(257, 61%, 55%)
CMYKcmyk(43.9%, 61.2%, 0%, 45.5%)
CIE-LABlab(29.72, 31.85, -43.84)
CIE-LCHlch(29.72, 54.19, 305.99°)
OKLaboklab(40.76% 0.0514 -0.125)
OKLCHoklch(40.76% 0.135 292.4)
XYZxyz(9.1200, 6.1218, 25.1222)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E368B #738B36
analogous
#36498B #4E368B #78368B
triadic
#4E368B #8B4E36 #368B4E
tetradic
#4E368B #8B3649 #738B36 #368B78
square
#4E368B #8B3649 #738B36 #368B78
split-complementary
#4E368B #8B7836 #498B36
monochromatic
#1D1433 #35255F #4E368B #6747B7 #8B73C9

Accessibility & contrast

On white

9.44
#4E368B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E368B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E368B
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E368B#FFFFFF#000000##FFFFFF
##4E368B1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#034489
Tritanopia (blue-blind)
#3D495B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e368b;
/* rgb */ color: rgb(78, 54, 139);
/* oklch */ color: oklch(40.8% 0.135 292.4);
Tailwind
colors: {
  custom: {
    50: '#846ead',
    500: '#4e368b',
    950: '#000000',
  },
}
SCSS
$custom: #4e368b;
$custom-light: #846ead;
$custom-dark: #000000;
JSON
{
  "hex": "#4e368b",
  "rgb": {
    "r": 78,
    "g": 54,
    "b": 139
  },
  "hsl": {
    "h": 256.941,
    "s": 44.041,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40757,
    "c": 0.13515,
    "h": 292.4
  },
  "luminance": 0.06122
}

Semantic roles & 50–950 ramp

primary
#4E368B
secondary
#9EB16C
accent
#D454B0
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E368B

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

Preview Lab → · Contrast checker → · Palette generator →

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