#4E418A#4E418A

#4E418A is a dark, moderate violet. Relative luminance 0.072; OKLCH L 42.7% C 0.117 H 288.6°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4E418A
RGBrgb(78, 65, 138)
HSLhsl(251, 36%, 40%)
HSVhsv(251, 53%, 54%)
CMYKcmyk(43.5%, 52.9%, 0%, 45.9%)
CIE-LABlab(32.34, 24.66, -39.02)
CIE-LCHlch(32.34, 46.15, 302.29°)
OKLaboklab(42.67% 0.0373 -0.1108)
OKLCHoklch(42.67% 0.117 288.6)
XYZxyz(9.6183, 7.2349, 24.9295)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E418A #7D8A41
analogous
#41588A #4E418A #73418A
triadic
#4E418A #8A4E41 #418A4E
tetradic
#4E418A #8A4158 #7D8A41 #418A73
square
#4E418A #8A4158 #7D8A41 #418A73
split-complementary
#4E418A #8A7341 #588A41
monochromatic
#1F1A37 #362D60 #4E418A #6858B0 #8D82C4

Accessibility & contrast

On white

8.58
#4E418A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E418A
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E418A#FFFFFF#000000##FFFFFF
##4E418A1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214E8D
Deuteranopia (green-blind)
#214A88
Tritanopia (blue-blind)
#3D505F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e418a;
/* rgb */ color: rgb(78, 65, 138);
/* oklch */ color: oklch(42.7% 0.117 288.6);
Tailwind
colors: {
  custom: {
    50: '#8376ad',
    500: '#4e418a',
    950: '#000000',
  },
}
SCSS
$custom: #4e418a;
$custom-light: #8376ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e418a",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 138
  },
  "hsl": {
    "h": 250.685,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42671,
    "c": 0.11688,
    "h": 288.6
  },
  "luminance": 0.07235
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E418A

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

Preview Lab → · Contrast checker → · Palette generator →

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