#4E34B9#4E34B9

#4E34B9 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.196 H 284.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#4E34B9
RGBrgb(78, 52, 185)
HSLhsl(252, 56%, 46%)
HSVhsv(252, 72%, 73%)
CMYKcmyk(57.8%, 71.9%, 0%, 27.5%)
CIE-LABlab(33.09, 46.85, -66.15)
CIE-LCHlch(33.09, 81.06, 305.31°)
OKLaboklab(44.37% 0.0474 -0.1905)
OKLCHoklch(44.37% 0.196 284)
XYZxyz(13.1241, 7.5776, 46.6606)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34B9 #9FB934
analogous
#345DB9 #4E34B9 #9134B9
triadic
#4E34B9 #B94E34 #34B94E
tetradic
#4E34B9 #B9345D #9FB934 #34B991
square
#4E34B9 #B9345D #9FB934 #34B991
split-complementary
#4E34B9 #B99134 #5DB934
monochromatic
#261959 #3A2789 #4E34B9 #715AD1 #9A89DE

Accessibility & contrast

On white

8.35
#4E34B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E34B9
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34B9#FFFFFF#000000##FFFFFF
##4E34B91.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#135873
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e34b9;
/* rgb */ color: rgb(78, 52, 185);
/* oklch */ color: oklch(44.4% 0.196 284.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ecf',
    500: '#4e34b9',
    950: '#000000',
  },
}
SCSS
$custom: #4e34b9;
$custom-light: #8b6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34b9",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 185
  },
  "hsl": {
    "h": 251.729,
    "s": 56.118,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44365,
    "c": 0.1963,
    "h": 284
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#4E34B9
secondary
#BAC881
accent
#DF48C2
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4E34B9

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

Preview Lab → · Contrast checker → · Palette generator →

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