#4E3372#4E3372

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

Color values

HEX#4E3372
RGBrgb(78, 51, 114)
HSLhsl(266, 38%, 32%)
HSVhsv(266, 55%, 45%)
CMYKcmyk(31.6%, 55.3%, 0%, 55.3%)
CIE-LABlab(27.30, 26.49, -32.04)
CIE-LCHlch(27.30, 41.57, 309.58°)
OKLaboklab(38.43% 0.0551 -0.0903)
OKLCHoklch(38.43% 0.106 301.4)
XYZxyz(7.3623, 5.2022, 16.5326)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3372 #577233
analogous
#333872 #4E3372 #6E3372
triadic
#4E3372 #724E33 #33724E
tetradic
#4E3372 #723338 #577233 #33726E
square
#4E3372 #723338 #577233 #33726E
split-complementary
#4E3372 #726E33 #387233
monochromatic
#140D1D #312048 #4E3372 #6B469C #8A65BA

Accessibility & contrast

On white

10.29
#4E3372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3372
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3372#FFFFFF#000000##FFFFFF
##4E33721.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e3372;
/* rgb */ color: rgb(78, 51, 114);
/* oklch */ color: oklch(38.4% 0.106 301.4);
Tailwind
colors: {
  custom: {
    50: '#826b9b',
    500: '#4e3372',
    950: '#000000',
  },
}
SCSS
$custom: #4e3372;
$custom-light: #826b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3372",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 114
  },
  "hsl": {
    "h": 265.714,
    "s": 38.182,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38434,
    "c": 0.1058,
    "h": 301.4
  },
  "luminance": 0.05202
}

Semantic roles & 50–950 ramp

primary
#4E3372
secondary
#85A25F
accent
#CE5A9C
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #4E3372

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

Preview Lab → · Contrast checker → · Palette generator →

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