#4E386B#4E386B

#4E386B is a dark, moderate violet. Relative luminance 0.055; OKLCH L 38.9% C 0.087 H 302.4°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#4E386B
RGBrgb(78, 56, 107)
HSLhsl(266, 31%, 32%)
HSVhsv(266, 48%, 42%)
CMYKcmyk(27.1%, 47.7%, 0%, 58%)
CIE-LABlab(28.14, 21.39, -26.24)
CIE-LCHlch(28.14, 33.86, 309.19°)
OKLaboklab(38.92% 0.0467 -0.0734)
OKLCHoklch(38.92% 0.087 302.4)
XYZxyz(7.2093, 5.5096, 14.5907)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E386B #556B38
analogous
#383C6B #4E386B #68386B
triadic
#4E386B #6B4E38 #386B4E
tetradic
#4E386B #6B383C #556B38 #386B68
square
#4E386B #6B383C #556B38 #386B68
split-complementary
#4E386B #6B6838 #3C6B38
monochromatic
#130E1B #312343 #4E386B #6B4D93 #8A6CB2

Accessibility & contrast

On white

9.99
#4E386B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4E386B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E386B
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E386B#FFFFFF#000000##FFFFFF
##4E386B1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A426D
Deuteranopia (green-blind)
#2F426A
Tritanopia (blue-blind)
#49414C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e386b;
/* rgb */ color: rgb(78, 56, 107);
/* oklch */ color: oklch(38.9% 0.087 302.4);
Tailwind
colors: {
  custom: {
    50: '#816f95',
    500: '#4e386b',
    950: '#000000',
  },
}
SCSS
$custom: #4e386b;
$custom-light: #816f95;
$custom-dark: #000000;
JSON
{
  "hex": "#4e386b",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 107
  },
  "hsl": {
    "h": 265.882,
    "s": 31.288,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38922,
    "c": 0.087,
    "h": 302.4
  },
  "luminance": 0.0551
}

Semantic roles & 50–950 ramp

primary
#4E386B
secondary
#839B63
accent
#C7609B
background
#F7F6F9
surface
#EEECF2
border
#C9C7CC
text
#0A070D
muted
#7C7A7E

Preview Lab

Preview with #4E386B

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

Preview Lab → · Contrast checker → · Palette generator →

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