#4E34B5#4E34B5

#4E34B5 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.191 H 284.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#4E34B5
RGBrgb(78, 52, 181)
HSLhsl(252, 55%, 46%)
HSVhsv(252, 71%, 71%)
CMYKcmyk(56.9%, 71.3%, 0%, 29%)
CIE-LABlab(32.73, 45.65, -64.38)
CIE-LCHlch(32.73, 78.92, 305.34°)
OKLaboklab(44% 0.0482 -0.1853)
OKLCHoklch(44% 0.191 284.6)
XYZxyz(12.7078, 7.4111, 44.4680)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34B5 #9BB534
analogous
#345AB5 #4E34B5 #8E34B5
triadic
#4E34B5 #B54E34 #34B54E
tetradic
#4E34B5 #B5345A #9BB534 #34B58E
square
#4E34B5 #B5345A #9BB534 #34B58E
split-complementary
#4E34B5 #B58E34 #5AB534
monochromatic
#251956 #3A2685 #4E34B5 #6F57CF #9887DC

Accessibility & contrast

On white

8.46
#4E34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4E34B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34B5
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34B5#FFFFFF#000000##FFFFFF
##4E34B51.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#1A5771
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e34b5;
/* rgb */ color: rgb(78, 52, 181);
/* oklch */ color: oklch(44.0% 0.191 284.6);
Tailwind
colors: {
  custom: {
    50: '#8b6ecc',
    500: '#4e34b5',
    950: '#000000',
  },
}
SCSS
$custom: #4e34b5;
$custom-light: #8b6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34b5",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 252.093,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43997,
    "c": 0.19146,
    "h": 284.6
  },
  "luminance": 0.07412
}

Semantic roles & 50–950 ramp

primary
#4E34B5
secondary
#B8C67F
accent
#DF49C1
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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