#4E34BA#4E34BA

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

Color values

HEX#4E34BA
RGBrgb(78, 52, 186)
HSLhsl(252, 56%, 47%)
HSVhsv(252, 72%, 73%)
CMYKcmyk(58.1%, 72%, 0%, 27.1%)
CIE-LABlab(33.18, 47.15, -66.59)
CIE-LCHlch(33.18, 81.60, 305.30°)
OKLaboklab(44.46% 0.0471 -0.1918)
OKLCHoklch(44.46% 0.198 283.8)
XYZxyz(13.2301, 7.6200, 47.2185)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34BA #A0BA34
analogous
#345DBA #4E34BA #9134BA
triadic
#4E34BA #BA4E34 #34BA4E
tetradic
#4E34BA #BA345D #A0BA34 #34BA91
square
#4E34BA #BA345D #A0BA34 #34BA91
split-complementary
#4E34BA #BA9134 #5DBA34
monochromatic
#26195A #3A278A #4E34BA #715AD1 #9A8ADE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E34BA#FFFFFF#000000##FFFFFF
##4E34BA1.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)
#0052BE
Deuteranopia (green-blind)
#004AB7
Tritanopia (blue-blind)
#105874
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e34ba;
/* rgb */ color: rgb(78, 52, 186);
/* oklch */ color: oklch(44.5% 0.198 283.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ed0',
    500: '#4e34ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e34ba;
$custom-light: #8b6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34ba",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 251.642,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44458,
    "c": 0.1975,
    "h": 283.8
  },
  "luminance": 0.07621
}

Semantic roles & 50–950 ramp

primary
#4E34BA
secondary
#BBC881
accent
#E048C2
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E34BA

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

Preview Lab → · Contrast checker → · Palette generator →

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