#4E34AB#4E34AB

#4E34AB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.179 H 286.2°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#4E34AB
RGBrgb(78, 52, 171)
HSLhsl(253, 53%, 44%)
HSVhsv(253, 70%, 67%)
CMYKcmyk(54.4%, 69.6%, 0%, 32.9%)
CIE-LABlab(31.84, 42.64, -59.86)
CIE-LCHlch(31.84, 73.50, 305.46°)
OKLaboklab(43.1% 0.05 -0.1721)
OKLCHoklch(43.1% 0.179 286.2)
XYZxyz(11.7184, 7.0153, 39.2568)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34AB #91AB34
analogous
#3455AB #4E34AB #8934AB
triadic
#4E34AB #AB4E34 #34AB4E
tetradic
#4E34AB #AB3455 #91AB34 #34AB89
square
#4E34AB #AB3455 #91AB34 #34AB89
split-complementary
#4E34AB #AB8934 #55AB34
monochromatic
#23174D #39267C #4E34AB #6C52CA #9481D9

Accessibility & contrast

On white

8.74
#4E34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4E34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34AB
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34AB#FFFFFF#000000##FFFFFF
##4E34AB1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#27536B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e34ab;
/* rgb */ color: rgb(78, 52, 171);
/* oklch */ color: oklch(43.1% 0.179 286.2);
Tailwind
colors: {
  custom: {
    50: '#896ec5',
    500: '#4e34ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e34ab;
$custom-light: #896ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34ab",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 253.109,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43095,
    "c": 0.17918,
    "h": 286.2
  },
  "luminance": 0.07016
}

Semantic roles & 50–950 ramp

primary
#4E34AB
secondary
#B2C279
accent
#DD4BBD
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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