#4E3AAC#4E3AAC

#4E3AAC is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.1% C 0.173 H 284.8°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#4E3AAC
RGBrgb(78, 58, 172)
HSLhsl(251, 50%, 45%)
HSVhsv(251, 66%, 67%)
CMYKcmyk(54.7%, 66.3%, 0%, 32.5%)
CIE-LABlab(33.19, 39.51, -58.26)
CIE-LCHlch(33.19, 70.40, 304.14°)
OKLaboklab(44.09% 0.0443 -0.1674)
OKLCHoklch(44.09% 0.173 284.8)
XYZxyz(12.0991, 7.6237, 39.8557)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3AAC #98AC3A
analogous
#3A5FAC #4E3AAC #873AAC
triadic
#4E3AAC #AC4E3A #3AAC4E
tetradic
#4E3AAC #AC3A5F #98AC3A #3AAC87
square
#4E3AAC #AC3A5F #98AC3A #3AAC87
split-complementary
#4E3AAC #AC873A #5FAC3A
monochromatic
#241B50 #392B7E #4E3AAC #6E5BC8 #9789D7

Accessibility & contrast

On white

8.32
#4E3AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4E3AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3AAC
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3AAC#FFFFFF#000000##FFFFFF
##4E3AAC1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#25576E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e3aac;
/* rgb */ color: rgb(78, 58, 172);
/* oklch */ color: oklch(44.1% 0.173 284.8);
Tailwind
colors: {
  custom: {
    50: '#8971c6',
    500: '#4e3aac',
    950: '#000000',
  },
}
SCSS
$custom: #4e3aac;
$custom-light: #8971c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3aac",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 172
  },
  "hsl": {
    "h": 250.526,
    "s": 49.565,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44088,
    "c": 0.17313,
    "h": 284.8
  },
  "luminance": 0.07624
}

Semantic roles & 50–950 ramp

primary
#4E3AAC
secondary
#B6C280
accent
#D94FC1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E3AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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