#4E337B#4E337B

#4E337B is a dark, moderate violet. Relative luminance 0.054; OKLCH L 39.1% C 0.118 H 298.0°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#4E337B
RGBrgb(78, 51, 123)
HSLhsl(263, 41%, 34%)
HSVhsv(263, 59%, 48%)
CMYKcmyk(36.6%, 58.5%, 0%, 51.8%)
CIE-LABlab(27.89, 29.02, -36.80)
CIE-LCHlch(27.89, 46.86, 308.26°)
OKLaboklab(39.06% 0.0555 -0.1043)
OKLCHoklch(39.06% 0.118 298)
XYZxyz(7.9000, 5.4173, 19.3645)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E337B #607B33
analogous
#333C7B #4E337B #72337B
triadic
#4E337B #7B4E33 #337B4E
tetradic
#4E337B #7B333C #607B33 #337B72
square
#4E337B #7B333C #607B33 #337B72
split-complementary
#4E337B #7B7233 #3C7B33
monochromatic
#170F24 #332150 #4E337B #6945A6 #8968C0

Accessibility & contrast

On white

10.08
#4E337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4E337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E337B
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E337B#FFFFFF#000000##FFFFFF
##4E337B1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427D
Deuteranopia (green-blind)
#1C4179
Tritanopia (blue-blind)
#444252
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e337b;
/* rgb */ color: rgb(78, 51, 123);
/* oklch */ color: oklch(39.1% 0.118 298.0);
Tailwind
colors: {
  custom: {
    50: '#836ca2',
    500: '#4e337b',
    950: '#000000',
  },
}
SCSS
$custom: #4e337b;
$custom-light: #836ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e337b",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 262.5,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39058,
    "c": 0.11812,
    "h": 298
  },
  "luminance": 0.05417
}

Semantic roles & 50–950 ramp

primary
#4E337B
secondary
#8EA862
accent
#D157A3
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4E337B

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

Preview Lab → · Contrast checker → · Palette generator →

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