#4E34B2#4E34B2

#4E34B2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.7% C 0.188 H 285.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#4E34B2
RGBrgb(78, 52, 178)
HSLhsl(252, 55%, 45%)
HSVhsv(252, 71%, 70%)
CMYKcmyk(56.2%, 70.8%, 0%, 30.2%)
CIE-LABlab(32.46, 44.75, -63.03)
CIE-LCHlch(32.46, 77.30, 305.37°)
OKLaboklab(43.72% 0.0487 -0.1814)
OKLCHoklch(43.72% 0.188 285)
XYZxyz(12.4033, 7.2893, 42.8643)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34B2 #98B234
analogous
#3459B2 #4E34B2 #8D34B2
triadic
#4E34B2 #B24E34 #34B24E
tetradic
#4E34B2 #B23459 #98B234 #34B28D
square
#4E34B2 #B23459 #98B234 #34B28D
split-complementary
#4E34B2 #B28D34 #59B234
monochromatic
#241853 #392683 #4E34B2 #6E56CE #9785DB

Accessibility & contrast

On white

8.54
#4E34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4E34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34B2
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34B2#FFFFFF#000000##FFFFFF
##4E34B21.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#1F556F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e34b2;
/* rgb */ color: rgb(78, 52, 178);
/* oklch */ color: oklch(43.7% 0.188 285.0);
Tailwind
colors: {
  custom: {
    50: '#8a6eca',
    500: '#4e34b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e34b2;
$custom-light: #8a6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34b2",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 252.381,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43723,
    "c": 0.1878,
    "h": 285
  },
  "luminance": 0.0729
}

Semantic roles & 50–950 ramp

primary
#4E34B2
secondary
#B6C57D
accent
#DE4ABF
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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