#4E3682#4E3682

#4E3682 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.1% C 0.123 H 294.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4E3682
RGBrgb(78, 54, 130)
HSLhsl(259, 41%, 36%)
HSVhsv(259, 58%, 51%)
CMYKcmyk(40%, 58.5%, 0%, 49%)
CIE-LABlab(29.08, 29.19, -39.28)
CIE-LCHlch(29.08, 48.93, 306.62°)
OKLaboklab(40.09% 0.0516 -0.1116)
OKLCHoklch(40.09% 0.123 294.8)
XYZxyz(8.4893, 5.8696, 21.8004)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3682 #6A8236
analogous
#364482 #4E3682 #743682
triadic
#4E3682 #824E36 #36824E
tetradic
#4E3682 #823644 #6A8236 #368274
square
#4E3682 #823644 #6A8236 #368274
split-complementary
#4E3682 #827436 #448236
monochromatic
#1A122C #342457 #4E3682 #6848AD #8A6FC3

Accessibility & contrast

On white

9.66
#4E3682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E3682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3682
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3682#FFFFFF#000000##FFFFFF
##4E36821.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4585
Deuteranopia (green-blind)
#174380
Tritanopia (blue-blind)
#414656
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3682;
/* rgb */ color: rgb(78, 54, 130);
/* oklch */ color: oklch(40.1% 0.123 294.8);
Tailwind
colors: {
  custom: {
    50: '#836ea7',
    500: '#4e3682',
    950: '#000000',
  },
}
SCSS
$custom: #4e3682;
$custom-light: #836ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3682",
  "rgb": {
    "r": 78,
    "g": 54,
    "b": 130
  },
  "hsl": {
    "h": 258.947,
    "s": 41.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40086,
    "c": 0.12289,
    "h": 294.8
  },
  "luminance": 0.0587
}

Semantic roles & 50–950 ramp

primary
#4E3682
secondary
#96AC68
accent
#D157AA
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E3682

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

Preview Lab → · Contrast checker → · Palette generator →

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