#4E338E#4E338E

#4E338E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.144 H 292.5°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4E338E
RGBrgb(78, 51, 142)
HSLhsl(258, 47%, 38%)
HSVhsv(258, 64%, 56%)
CMYKcmyk(45.1%, 64.1%, 0%, 44.3%)
CIE-LABlab(29.26, 34.54, -46.44)
CIE-LCHlch(29.26, 57.87, 306.64°)
OKLaboklab(40.49% 0.0549 -0.1326)
OKLCHoklch(40.49% 0.144 292.5)
XYZxyz(9.2069, 5.9401, 26.2474)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E338E #738E33
analogous
#33468E #4E338E #7B338E
triadic
#4E338E #8E4E33 #338E4E
tetradic
#4E338E #8E3346 #738E33 #338E7B
square
#4E338E #8E3346 #738E33 #338E7B
split-complementary
#4E338E #8E7B33 #468E33
monochromatic
#1D1334 #352361 #4E338E #6743BB #8B70CC

Accessibility & contrast

On white

9.60
#4E338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E338E
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E338E#FFFFFF#000000##FFFFFF
##4E338E1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e338e;
/* rgb */ color: rgb(78, 51, 142);
/* oklch */ color: oklch(40.5% 0.144 292.5);
Tailwind
colors: {
  custom: {
    50: '#856cb0',
    500: '#4e338e',
    950: '#000000',
  },
}
SCSS
$custom: #4e338e;
$custom-light: #856cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e338e",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 257.802,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40494,
    "c": 0.14351,
    "h": 292.5
  },
  "luminance": 0.0594
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E338E

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

Preview Lab → · Contrast checker → · Palette generator →

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