#4E34A8#4E34A8

#4E34A8 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.175 H 286.7°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4E34A8
RGBrgb(78, 52, 168)
HSLhsl(253, 53%, 43%)
HSVhsv(253, 69%, 66%)
CMYKcmyk(53.6%, 69%, 0%, 34.1%)
CIE-LABlab(31.58, 41.74, -58.48)
CIE-LCHlch(31.58, 71.85, 305.51°)
OKLaboklab(42.83% 0.0505 -0.168)
OKLCHoklch(42.83% 0.175 286.7)
XYZxyz(11.4357, 6.9022, 37.7679)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34A8 #8EA834
analogous
#3454A8 #4E34A8 #8834A8
triadic
#4E34A8 #A84E34 #34A84E
tetradic
#4E34A8 #A83454 #8EA834 #34A888
square
#4E34A8 #A83454 #8EA834 #34A888
split-complementary
#4E34A8 #A88834 #54A834
monochromatic
#23174B #382679 #4E34A8 #6B50C9 #937FD7

Accessibility & contrast

On white

8.82
#4E34A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4E34A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34A8
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34A8#FFFFFF#000000##FFFFFF
##4E34A81.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#2A526A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e34a8;
/* rgb */ color: rgb(78, 52, 168);
/* oklch */ color: oklch(42.8% 0.175 286.7);
Tailwind
colors: {
  custom: {
    50: '#886dc3',
    500: '#4e34a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e34a8;
$custom-light: #886dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34a8",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 168
  },
  "hsl": {
    "h": 253.448,
    "s": 52.727,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4283,
    "c": 0.17544,
    "h": 286.7
  },
  "luminance": 0.06903
}

Semantic roles & 50–950 ramp

primary
#4E34A8
secondary
#B0C077
accent
#DC4CBC
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E34A8

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

Preview Lab → · Contrast checker → · Palette generator →

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