#4E3177#4E3177

#4E3177 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.4% C 0.116 H 300.1°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4E3177
RGBrgb(78, 49, 119)
HSLhsl(265, 42%, 33%)
HSVhsv(265, 59%, 47%)
CMYKcmyk(34.5%, 58.8%, 0%, 53.3%)
CIE-LABlab(27.15, 29.11, -35.45)
CIE-LCHlch(27.15, 45.88, 309.39°)
OKLaboklab(38.43% 0.0582 -0.1003)
OKLCHoklch(38.43% 0.116 300.1)
XYZxyz(7.5692, 5.1482, 18.0441)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3177 #5A7731
analogous
#313777 #4E3177 #713177
triadic
#4E3177 #774E31 #31774E
tetradic
#4E3177 #773137 #5A7731 #317771
square
#4E3177 #773137 #5A7731 #317771
split-complementary
#4E3177 #777131 #377731
monochromatic
#150D20 #321F4C #4E3177 #6A43A2 #8963BF

Accessibility & contrast

On white

10.35
#4E3177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E3177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3177
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3177#FFFFFF#000000##FFFFFF
##4E31771.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124079
Deuteranopia (green-blind)
#1D4075
Tritanopia (blue-blind)
#453F4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e3177;
/* rgb */ color: rgb(78, 49, 119);
/* oklch */ color: oklch(38.4% 0.116 300.1);
Tailwind
colors: {
  custom: {
    50: '#826a9f',
    500: '#4e3177',
    950: '#000000',
  },
}
SCSS
$custom: #4e3177;
$custom-light: #826a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3177",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 119
  },
  "hsl": {
    "h": 264.857,
    "s": 41.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38427,
    "c": 0.11597,
    "h": 300.1
  },
  "luminance": 0.05148
}

Semantic roles & 50–950 ramp

primary
#4E3177
secondary
#88A65D
accent
#D1569E
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E3177

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

Preview Lab → · Contrast checker → · Palette generator →

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