#4E34B3#4E34B3

#4E34B3 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.189 H 284.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#4E34B3
RGBrgb(78, 52, 179)
HSLhsl(252, 55%, 45%)
HSVhsv(252, 71%, 70%)
CMYKcmyk(56.4%, 70.9%, 0%, 29.8%)
CIE-LABlab(32.55, 45.05, -63.48)
CIE-LCHlch(32.55, 77.84, 305.36°)
OKLaboklab(43.81% 0.0486 -0.1827)
OKLCHoklch(43.81% 0.189 284.9)
XYZxyz(12.5041, 7.3296, 43.3950)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34B3 #99B334
analogous
#345AB3 #4E34B3 #8D34B3
triadic
#4E34B3 #B34E34 #34B34E
tetradic
#4E34B3 #B3345A #99B334 #34B38D
square
#4E34B3 #B3345A #99B334 #34B38D
split-complementary
#4E34B3 #B38D34 #5AB334
monochromatic
#251854 #392684 #4E34B3 #6F56CE #9786DC

Accessibility & contrast

On white

8.52
#4E34B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E34B3
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34B3#FFFFFF#000000##FFFFFF
##4E34B31.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#1D5670
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e34b3;
/* rgb */ color: rgb(78, 52, 179);
/* oklch */ color: oklch(43.8% 0.189 284.9);
Tailwind
colors: {
  custom: {
    50: '#8a6ecb',
    500: '#4e34b3',
    950: '#000000',
  },
}
SCSS
$custom: #4e34b3;
$custom-light: #8a6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34b3",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 252.283,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43814,
    "c": 0.18902,
    "h": 284.9
  },
  "luminance": 0.0733
}

Semantic roles & 50–950 ramp

primary
#4E34B3
secondary
#B7C57D
accent
#DE49C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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