#4E3166#4E3166

#4E3166 is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.3% C 0.093 H 307.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4E3166
RGBrgb(78, 49, 102)
HSLhsl(273, 35%, 30%)
HSVhsv(273, 52%, 40%)
CMYKcmyk(23.5%, 52%, 0%, 60%)
CIE-LABlab(26.09, 24.50, -26.27)
CIE-LCHlch(26.09, 35.92, 313.00°)
OKLaboklab(37.29% 0.0569 -0.0735)
OKLCHoklch(37.29% 0.093 307.8)
XYZxyz(6.6380, 4.7757, 13.1399)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3166 #496631
analogous
#343166 #4E3166 #663164
triadic
#4E3166 #664E31 #31664E
tetradic
#4E3166 #663431 #496631 #316466
square
#4E3166 #663431 #496631 #316466
split-complementary
#4E3166 #646631 #316634
monochromatic
#100A15 #2E1D3D #4E3166 #6E458F #8D5FB2

Accessibility & contrast

On white

10.74
#4E3166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E3166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3166
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3166#FFFFFF#000000##FFFFFF
##4E31661.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233D68
Deuteranopia (green-blind)
#2B3E65
Tritanopia (blue-blind)
#4B3A46
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e3166;
/* rgb */ color: rgb(78, 49, 102);
/* oklch */ color: oklch(37.3% 0.093 307.8);
Tailwind
colors: {
  custom: {
    50: '#816a92',
    500: '#4e3166',
    950: '#000000',
  },
}
SCSS
$custom: #4e3166;
$custom-light: #816a92;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3166",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 272.83,
    "s": 35.099,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37293,
    "c": 0.09294,
    "h": 307.8
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#4E3166
secondary
#77975C
accent
#CB5D8F
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0A060D
muted
#7C7A7E

Preview Lab

Preview with #4E3166

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

Preview Lab → · Contrast checker → · Palette generator →

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