#4E3374#4E3374

#4E3374 is a dark, moderate violet. Relative luminance 0.052; OKLCH L 38.6% C 0.109 H 300.6°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4E3374
RGBrgb(78, 51, 116)
HSLhsl(265, 39%, 33%)
HSVhsv(265, 56%, 45%)
CMYKcmyk(32.8%, 56%, 0%, 54.5%)
CIE-LABlab(27.43, 27.04, -33.11)
CIE-LCHlch(27.43, 42.75, 309.24°)
OKLaboklab(38.57% 0.0552 -0.0934)
OKLCHoklch(38.57% 0.109 300.6)
XYZxyz(7.4774, 5.2483, 17.1387)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3374 #597433
analogous
#333974 #4E3374 #6E3374
triadic
#4E3374 #744E33 #33744E
tetradic
#4E3374 #743339 #597433 #33746E
square
#4E3374 #743339 #597433 #33746E
split-complementary
#4E3374 #746E33 #397433
monochromatic
#150E1F #312049 #4E3374 #6B469F #8966BC

Accessibility & contrast

On white

10.25
#4E3374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E3374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3374
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3374#FFFFFF#000000##FFFFFF
##4E33741.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4176
Deuteranopia (green-blind)
#234072
Tritanopia (blue-blind)
#46404E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e3374;
/* rgb */ color: rgb(78, 51, 116);
/* oklch */ color: oklch(38.6% 0.109 300.6);
Tailwind
colors: {
  custom: {
    50: '#826b9c',
    500: '#4e3374',
    950: '#000000',
  },
}
SCSS
$custom: #4e3374;
$custom-light: #826b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3374",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 116
  },
  "hsl": {
    "h": 264.923,
    "s": 38.922,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38569,
    "c": 0.10855,
    "h": 300.6
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#4E3374
secondary
#87A45F
accent
#CF599E
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #4E3374

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

Preview Lab → · Contrast checker → · Palette generator →

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