#4E34B7#4E34B7

#4E34B7 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.194 H 284.3°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#4E34B7
RGBrgb(78, 52, 183)
HSLhsl(252, 56%, 46%)
HSVhsv(252, 72%, 72%)
CMYKcmyk(57.4%, 71.6%, 0%, 28.2%)
CIE-LABlab(32.91, 46.25, -65.27)
CIE-LCHlch(32.91, 79.99, 305.32°)
OKLaboklab(44.18% 0.0478 -0.1879)
OKLCHoklch(44.18% 0.194 284.3)
XYZxyz(12.9145, 7.4938, 45.5565)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34B7 #9DB734
analogous
#345BB7 #4E34B7 #8F34B7
triadic
#4E34B7 #B74E34 #34B74E
tetradic
#4E34B7 #B7345B #9DB734 #34B78F
square
#4E34B7 #B7345B #9DB734 #34B78F
split-complementary
#4E34B7 #B78F34 #5BB734
monochromatic
#251958 #3A2687 #4E34B7 #7059D0 #9988DD

Accessibility & contrast

On white

8.40
#4E34B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4E34B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34B7
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34B7#FFFFFF#000000##FFFFFF
##4E34B71.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#175772
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4e34b7;
/* rgb */ color: rgb(78, 52, 183);
/* oklch */ color: oklch(44.2% 0.194 284.3);
Tailwind
colors: {
  custom: {
    50: '#8b6ece',
    500: '#4e34b7',
    950: '#000000',
  },
}
SCSS
$custom: #4e34b7;
$custom-light: #8b6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34b7",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 251.908,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4418,
    "c": 0.19387,
    "h": 284.3
  },
  "luminance": 0.07495
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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