#4E388C#4E388C

#4E388C is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.2% C 0.134 H 291.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4E388C
RGBrgb(78, 56, 140)
HSLhsl(256, 43%, 38%)
HSVhsv(256, 60%, 55%)
CMYKcmyk(44.3%, 60%, 0%, 45.1%)
CIE-LABlab(30.26, 30.92, -43.59)
CIE-LCHlch(30.26, 53.44, 305.35°)
OKLaboklab(41.18% 0.0489 -0.1242)
OKLCHoklch(41.18% 0.134 291.5)
XYZxyz(9.2884, 6.3412, 25.5404)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E388C #768C38
analogous
#384C8C #4E388C #78388C
triadic
#4E388C #8C4E38 #388C4E
tetradic
#4E388C #8C384C #768C38 #388C78
square
#4E388C #8C384C #768C38 #388C78
split-complementary
#4E388C #8C7838 #4C8C38
monochromatic
#1D1535 #362760 #4E388C #674AB7 #8C76C8

Accessibility & contrast

On white

9.26
#4E388C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E388C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E388C
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E388C#FFFFFF#000000##FFFFFF
##4E388C1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00498F
Deuteranopia (green-blind)
#07458A
Tritanopia (blue-blind)
#3C4B5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e388c;
/* rgb */ color: rgb(78, 56, 140);
/* oklch */ color: oklch(41.2% 0.134 291.5);
Tailwind
colors: {
  custom: {
    50: '#846fae',
    500: '#4e388c',
    950: '#000000',
  },
}
SCSS
$custom: #4e388c;
$custom-light: #846fae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e388c",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 140
  },
  "hsl": {
    "h": 255.714,
    "s": 42.857,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41176,
    "c": 0.13352,
    "h": 291.5
  },
  "luminance": 0.06341
}

Semantic roles & 50–950 ramp

primary
#4E388C
secondary
#A0B16F
accent
#D355B2
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E388C

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

Preview Lab → · Contrast checker → · Palette generator →

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