#4E417B#4E417B

#4E417B is a dark, moderate violet. Relative luminance 0.068; OKLCH L 41.7% C 0.095 H 292.1°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4E417B
RGBrgb(78, 65, 123)
HSLhsl(253, 31%, 37%)
HSVhsv(253, 47%, 48%)
CMYKcmyk(36.6%, 47.2%, 0%, 51.8%)
CIE-LABlab(31.42, 20.14, -31.17)
CIE-LCHlch(31.42, 37.11, 302.87°)
OKLaboklab(41.69% 0.0356 -0.0878)
OKLCHoklch(41.69% 0.095 292.1)
XYZxyz(8.6064, 6.8302, 19.6000)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E417B #6E7B41
analogous
#41517B #4E417B #6B417B
triadic
#4E417B #7B4E41 #417B4E
tetradic
#4E417B #7B4151 #6E7B41 #417B6B
square
#4E417B #7B4151 #6E7B41 #417B6B
split-complementary
#4E417B #7B6B41 #517B41
monochromatic
#1B172B #352C53 #4E417B #6756A3 #8A7CBA

Accessibility & contrast

On white

8.88
#4E417B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4E417B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E417B
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E417B#FFFFFF#000000##FFFFFF
##4E417B1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4B7D
Deuteranopia (green-blind)
#2F497A
Tritanopia (blue-blind)
#434C58
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e417b;
/* rgb */ color: rgb(78, 65, 123);
/* oklch */ color: oklch(41.7% 0.095 292.1);
Tailwind
colors: {
  custom: {
    50: '#8275a1',
    500: '#4e417b',
    950: '#000000',
  },
}
SCSS
$custom: #4e417b;
$custom-light: #8275a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e417b",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 123
  },
  "hsl": {
    "h": 253.448,
    "s": 30.851,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41685,
    "c": 0.09474,
    "h": 292.1
  },
  "luminance": 0.0683
}

Semantic roles & 50–950 ramp

primary
#4E417B
secondary
#9AA573
accent
#C761B0
background
#F8F7F9
surface
#EFEDF2
border
#CAC8CC
text
#0B080F
muted
#7C7B7E

Preview Lab

Preview with #4E417B

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

Preview Lab → · Contrast checker → · Palette generator →

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