#4E34B4#4E34B4

#4E34B4 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.190 H 284.7°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#4E34B4
RGBrgb(78, 52, 180)
HSLhsl(252, 55%, 45%)
HSVhsv(252, 71%, 71%)
CMYKcmyk(56.7%, 71.1%, 0%, 29.4%)
CIE-LABlab(32.64, 45.35, -63.93)
CIE-LCHlch(32.64, 78.38, 305.35°)
OKLaboklab(43.91% 0.0483 -0.184)
OKLCHoklch(43.91% 0.19 284.7)
XYZxyz(12.6056, 7.3702, 43.9295)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34B4 #9AB434
analogous
#345AB4 #4E34B4 #8E34B4
triadic
#4E34B4 #B44E34 #34B44E
tetradic
#4E34B4 #B4345A #9AB434 #34B48E
square
#4E34B4 #B4345A #9AB434 #34B48E
split-complementary
#4E34B4 #B48E34 #5AB434
monochromatic
#251955 #392685 #4E34B4 #6F57CE #9886DC

Accessibility & contrast

On white

8.49
#4E34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4E34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34B4
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34B4#FFFFFF#000000##FFFFFF
##4E34B41.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#1C5670
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e34b4;
/* rgb */ color: rgb(78, 52, 180);
/* oklch */ color: oklch(43.9% 0.190 284.7);
Tailwind
colors: {
  custom: {
    50: '#8a6ecc',
    500: '#4e34b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e34b4;
$custom-light: #8a6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34b4",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 252.188,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43905,
    "c": 0.19024,
    "h": 284.7
  },
  "luminance": 0.07371
}

Semantic roles & 50–950 ramp

primary
#4E34B4
secondary
#B7C67E
accent
#DF49C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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