#4E387B#4E387B

#4E387B is a dark, moderate violet. Relative luminance 0.059; OKLCH L 40.0% C 0.110 H 296.2°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#4E387B
RGBrgb(78, 56, 123)
HSLhsl(260, 37%, 35%)
HSVhsv(260, 54%, 48%)
CMYKcmyk(36.6%, 54.5%, 0%, 51.8%)
CIE-LABlab(29.10, 25.90, -34.86)
CIE-LCHlch(29.10, 43.43, 306.61°)
OKLaboklab(39.95% 0.0486 -0.0986)
OKLCHoklch(39.95% 0.11 296.2)
XYZxyz(8.1303, 5.8780, 19.4413)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E387B #657B38
analogous
#38447B #4E387B #6F387B
triadic
#4E387B #7B4E38 #387B4E
tetradic
#4E387B #7B3844 #657B38 #387B6F
square
#4E387B #7B3844 #657B38 #387B6F
split-complementary
#4E387B #7B6F38 #447B38
monochromatic
#191227 #332551 #4E387B #694BA5 #8970BE

Accessibility & contrast

On white

9.65
#4E387B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4E387B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E387B
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E387B#FFFFFF#000000##FFFFFF
##4E387B1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E457D
Deuteranopia (green-blind)
#234479
Tritanopia (blue-blind)
#444554
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e387b;
/* rgb */ color: rgb(78, 56, 123);
/* oklch */ color: oklch(40.0% 0.110 296.2);
Tailwind
colors: {
  custom: {
    50: '#826fa1',
    500: '#4e387b',
    950: '#000000',
  },
}
SCSS
$custom: #4e387b;
$custom-light: #826fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e387b",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 123
  },
  "hsl": {
    "h": 259.701,
    "s": 37.43,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39953,
    "c": 0.10989,
    "h": 296.2
  },
  "luminance": 0.05878
}

Semantic roles & 50–950 ramp

primary
#4E387B
secondary
#92A768
accent
#CD5AA8
background
#F8F6FA
surface
#EFECF3
border
#CAC7CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E387B

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

Preview Lab → · Contrast checker → · Palette generator →

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