#4E3F81#4E3F81

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

Color values

HEX#4E3F81
RGBrgb(78, 63, 129)
HSLhsl(254, 34%, 38%)
HSVhsv(254, 51%, 51%)
CMYKcmyk(39.5%, 51.2%, 0%, 49.4%)
CIE-LABlab(31.25, 23.21, -35.18)
CIE-LCHlch(31.25, 42.14, 303.42°)
OKLaboklab(41.68% 0.0393 -0.0995)
OKLCHoklch(41.68% 0.107 291.5)
XYZxyz(8.8808, 6.7595, 21.6014)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3F81 #72813F
analogous
#3F5181 #4E3F81 #6F3F81
triadic
#4E3F81 #814E3F #3F814E
tetradic
#4E3F81 #813F51 #72813F #3F816F
square
#4E3F81 #813F51 #72813F #3F816F
split-complementary
#4E3F81 #816F3F #51813F
monochromatic
#1C172F #352B58 #4E3F81 #6753AA #8B7CBF

Accessibility & contrast

On white

8.93
#4E3F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E3F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3F81
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3F81#FFFFFF#000000##FFFFFF
##4E3F811.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264B83
Deuteranopia (green-blind)
#27487F
Tritanopia (blue-blind)
#414C5A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e3f81;
/* rgb */ color: rgb(78, 63, 129);
/* oklch */ color: oklch(41.7% 0.107 291.5);
Tailwind
colors: {
  custom: {
    50: '#8274a6',
    500: '#4e3f81',
    950: '#000000',
  },
}
SCSS
$custom: #4e3f81;
$custom-light: #8274a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3f81",
  "rgb": {
    "r": 78,
    "g": 63,
    "b": 129
  },
  "hsl": {
    "h": 253.636,
    "s": 34.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41678,
    "c": 0.10697,
    "h": 291.5
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#4E3F81
secondary
#9DA973
accent
#CA5DB2
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #4E3F81

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

Preview Lab → · Contrast checker → · Palette generator →

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