#4E3783#4E3783

#4E3783 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.3% C 0.123 H 294.2°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#4E3783
RGBrgb(78, 55, 131)
HSLhsl(258, 41%, 36%)
HSVhsv(258, 58%, 51%)
CMYKcmyk(40.5%, 58%, 0%, 48.6%)
CIE-LABlab(29.39, 28.86, -39.41)
CIE-LCHlch(29.39, 48.84, 306.22°)
OKLaboklab(40.34% 0.0502 -0.1119)
OKLCHoklch(40.34% 0.123 294.2)
XYZxyz(8.6037, 5.9906, 22.1713)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3783 #6C8337
analogous
#374683 #4E3783 #743783
triadic
#4E3783 #834E37 #37834E
tetradic
#4E3783 #833746 #6C8337 #378374
square
#4E3783 #833746 #6C8337 #378374
split-complementary
#4E3783 #837437 #468337
monochromatic
#1B132D #342558 #4E3783 #6849AE #8A71C3

Accessibility & contrast

On white

9.55
#4E3783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E3783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3783
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3783#FFFFFF#000000##FFFFFF
##4E37831.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104686
Deuteranopia (green-blind)
#184481
Tritanopia (blue-blind)
#414757
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3783;
/* rgb */ color: rgb(78, 55, 131);
/* oklch */ color: oklch(40.3% 0.123 294.2);
Tailwind
colors: {
  custom: {
    50: '#836ea7',
    500: '#4e3783',
    950: '#000000',
  },
}
SCSS
$custom: #4e3783;
$custom-light: #836ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3783",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 131
  },
  "hsl": {
    "h": 258.158,
    "s": 40.86,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40335,
    "c": 0.1227,
    "h": 294.2
  },
  "luminance": 0.05991
}

Semantic roles & 50–950 ramp

primary
#4E3783
secondary
#98AC6A
accent
#D157AC
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3783

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

Preview Lab → · Contrast checker → · Palette generator →

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