#4E337A#4E337A

#4E337A is a dark, moderate violet. Relative luminance 0.054; OKLCH L 39.0% C 0.117 H 298.4°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#4E337A
RGBrgb(78, 51, 122)
HSLhsl(263, 41%, 34%)
HSVhsv(263, 58%, 48%)
CMYKcmyk(36.1%, 58.2%, 0%, 52.2%)
CIE-LABlab(27.82, 28.73, -36.27)
CIE-LCHlch(27.82, 46.27, 308.38°)
OKLaboklab(38.99% 0.0555 -0.1027)
OKLCHoklch(38.99% 0.117 298.4)
XYZxyz(7.8377, 5.3924, 19.0365)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E337A #5F7A33
analogous
#333C7A #4E337A #72337A
triadic
#4E337A #7A4E33 #337A4E
tetradic
#4E337A #7A333C #5F7A33 #337A72
square
#4E337A #7A333C #5F7A33 #337A72
split-complementary
#4E337A #7A7233 #3C7A33
monochromatic
#170F24 #32214F #4E337A #6A45A5 #8968C0

Accessibility & contrast

On white

10.10
#4E337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E337A
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E337A#FFFFFF#000000##FFFFFF
##4E337A1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427C
Deuteranopia (green-blind)
#1D4178
Tritanopia (blue-blind)
#444151
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e337a;
/* rgb */ color: rgb(78, 51, 122);
/* oklch */ color: oklch(39.0% 0.117 298.4);
Tailwind
colors: {
  custom: {
    50: '#836ca1',
    500: '#4e337a',
    950: '#000000',
  },
}
SCSS
$custom: #4e337a;
$custom-light: #836ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e337a",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 262.817,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38987,
    "c": 0.11676,
    "h": 298.4
  },
  "luminance": 0.05392
}

Semantic roles & 50–950 ramp

primary
#4E337A
secondary
#8DA861
accent
#D157A3
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070F
muted
#7C7A7E

Preview Lab

Preview with #4E337A

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

Preview Lab → · Contrast checker → · Palette generator →

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