#4E338D#4E338D

#4E338D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.4% C 0.142 H 292.7°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#4E338D
RGBrgb(78, 51, 141)
HSLhsl(258, 47%, 38%)
HSVhsv(258, 64%, 55%)
CMYKcmyk(44.7%, 63.8%, 0%, 44.7%)
CIE-LABlab(29.18, 34.24, -45.94)
CIE-LCHlch(29.18, 57.30, 306.70°)
OKLaboklab(40.42% 0.0549 -0.1311)
OKLCHoklch(40.42% 0.142 292.7)
XYZxyz(9.1321, 5.9102, 25.8538)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E338D #728D33
analogous
#33458D #4E338D #7B338D
triadic
#4E338D #8D4E33 #338D4E
tetradic
#4E338D #8D3345 #728D33 #338D7B
square
#4E338D #8D3345 #728D33 #338D7B
split-complementary
#4E338D #8D7B33 #458D33
monochromatic
#1C1233 #352360 #4E338D #6743BA #8B6FCB

Accessibility & contrast

On white

9.62
#4E338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E338D
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E338D#FFFFFF#000000##FFFFFF
##4E338D1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#3C485B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e338d;
/* rgb */ color: rgb(78, 51, 141);
/* oklch */ color: oklch(40.4% 0.142 292.7);
Tailwind
colors: {
  custom: {
    50: '#856caf',
    500: '#4e338d',
    950: '#000000',
  },
}
SCSS
$custom: #4e338d;
$custom-light: #856caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e338d",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 258,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40415,
    "c": 0.14219,
    "h": 292.7
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#4E338D
secondary
#9DB369
accent
#D751AF
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E338D

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

Preview Lab → · Contrast checker → · Palette generator →

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