#4E3371#4E3371

#4E3371 is a dark, moderate violet. Relative luminance 0.052; OKLCH L 38.4% C 0.104 H 301.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4E3371
RGBrgb(78, 51, 113)
HSLhsl(266, 38%, 32%)
HSVhsv(266, 55%, 44%)
CMYKcmyk(31%, 54.9%, 0%, 55.7%)
CIE-LABlab(27.24, 26.21, -31.50)
CIE-LCHlch(27.24, 40.98, 309.76°)
OKLaboklab(38.37% 0.055 -0.0887)
OKLCHoklch(38.37% 0.104 301.8)
XYZxyz(7.3057, 5.1796, 16.2345)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3371 #567133
analogous
#333771 #4E3371 #6D3371
triadic
#4E3371 #714E33 #33714E
tetradic
#4E3371 #713337 #567133 #33716D
square
#4E3371 #713337 #567133 #33716D
split-complementary
#4E3371 #716D33 #377133
monochromatic
#140D1D #312047 #4E3371 #6B469B #8A65B9

Accessibility & contrast

On white

10.31
#4E3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E3371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3371
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3371#FFFFFF#000000##FFFFFF
##4E33711.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#254070
Tritanopia (blue-blind)
#473F4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e3371;
/* rgb */ color: rgb(78, 51, 113);
/* oklch */ color: oklch(38.4% 0.104 301.8);
Tailwind
colors: {
  custom: {
    50: '#826b9a',
    500: '#4e3371',
    950: '#000000',
  },
}
SCSS
$custom: #4e3371;
$custom-light: #826b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3371",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 266.129,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38367,
    "c": 0.10442,
    "h": 301.8
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#4E3371
secondary
#84A25E
accent
#CE5A9B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #4E3371

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

Preview Lab → · Contrast checker → · Palette generator →

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