#4E3862#4E3862

#4E3862 is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.4% C 0.074 H 307.3°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4E3862
RGBrgb(78, 56, 98)
HSLhsl(271, 27%, 30%)
HSVhsv(271, 43%, 38%)
CMYKcmyk(20.4%, 42.9%, 0%, 61.6%)
CIE-LABlab(27.66, 18.99, -21.22)
CIE-LCHlch(27.66, 28.48, 311.83°)
OKLaboklab(38.4% 0.0449 -0.0589)
OKLCHoklch(38.4% 0.074 307.3)
XYZxyz(6.7602, 5.3300, 12.2256)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3862 #4C6238
analogous
#393862 #4E3862 #623861
triadic
#4E3862 #624E38 #38624E
tetradic
#4E3862 #623938 #4C6238 #386162
square
#4E3862 #623938 #4C6238 #386162
split-complementary
#4E3862 #616238 #386239
monochromatic
#100B14 #2F223B #4E3862 #6D4E89 #8C6AAA

Accessibility & contrast

On white

10.16
#4E3862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E3862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3862
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3862#FFFFFF#000000##FFFFFF
##4E38621.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4064
Deuteranopia (green-blind)
#344261
Tritanopia (blue-blind)
#4B3E48
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e3862;
/* rgb */ color: rgb(78, 56, 98);
/* oklch */ color: oklch(38.4% 0.074 307.3);
Tailwind
colors: {
  custom: {
    50: '#806f8f',
    500: '#4e3862',
    950: '#000000',
  },
}
SCSS
$custom: #4e3862;
$custom-light: #806f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3862",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 98
  },
  "hsl": {
    "h": 271.429,
    "s": 27.273,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38398,
    "c": 0.07405,
    "h": 307.3
  },
  "luminance": 0.0533
}

Semantic roles & 50–950 ramp

primary
#4E3862
secondary
#7A9263
accent
#C46492
background
#F7F6F8
surface
#EEECF0
border
#C9C7CB
text
#0A070C
muted
#7C7A7D

Preview Lab

Preview with #4E3862

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

Preview Lab → · Contrast checker → · Palette generator →

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