#4E418B#4E418B

#4E418B is a dark, moderate violet. Relative luminance 0.073; OKLCH L 42.7% C 0.118 H 288.4°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#4E418B
RGBrgb(78, 65, 139)
HSLhsl(251, 36%, 40%)
HSVhsv(251, 53%, 55%)
CMYKcmyk(43.9%, 53.2%, 0%, 45.5%)
CIE-LABlab(32.40, 24.96, -39.53)
CIE-LCHlch(32.40, 46.75, 302.27°)
OKLaboklab(42.74% 0.0374 -0.1123)
OKLCHoklch(42.74% 0.118 288.4)
XYZxyz(9.6911, 7.2640, 25.3126)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E418B #7E8B41
analogous
#41598B #4E418B #73418B
triadic
#4E418B #8B4E41 #418B4E
tetradic
#4E418B #8B4159 #7E8B41 #418B73
square
#4E418B #8B4159 #7E8B41 #418B73
split-complementary
#4E418B #8B7341 #598B41
monochromatic
#1F1A38 #372D61 #4E418B #6858B1 #8E82C5

Accessibility & contrast

On white

8.56
#4E418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4E418B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E418B
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E418B#FFFFFF#000000##FFFFFF
##4E418B1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8E
Deuteranopia (green-blind)
#204A89
Tritanopia (blue-blind)
#3C515F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e418b;
/* rgb */ color: rgb(78, 65, 139);
/* oklch */ color: oklch(42.7% 0.118 288.4);
Tailwind
colors: {
  custom: {
    50: '#8376ad',
    500: '#4e418b',
    950: '#000000',
  },
}
SCSS
$custom: #4e418b;
$custom-light: #8376ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e418b",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 250.541,
    "s": 36.275,
    "l": 40
  },
  "oklch": {
    "l": 0.42741,
    "c": 0.11834,
    "h": 288.4
  },
  "luminance": 0.07264
}

Semantic roles & 50–950 ramp

primary
#4E418B
secondary
#A6AF79
accent
#CC5CB8
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E418B

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

Preview Lab → · Contrast checker → · Palette generator →

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