#4E34B1#4E34B1

#4E34B1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.187 H 285.2°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#4E34B1
RGBrgb(78, 52, 177)
HSLhsl(252, 55%, 45%)
HSVhsv(252, 71%, 69%)
CMYKcmyk(55.9%, 70.6%, 0%, 30.6%)
CIE-LABlab(32.37, 44.45, -62.58)
CIE-LCHlch(32.37, 76.76, 305.38°)
OKLaboklab(43.63% 0.0489 -0.18)
OKLCHoklch(43.63% 0.187 285.2)
XYZxyz(12.3033, 7.2493, 42.3374)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34B1 #97B134
analogous
#3459B1 #4E34B1 #8D34B1
triadic
#4E34B1 #B14E34 #34B14E
tetradic
#4E34B1 #B13459 #97B134 #34B18D
square
#4E34B1 #B13459 #97B134 #34B18D
split-complementary
#4E34B1 #B18D34 #59B134
monochromatic
#241852 #392682 #4E34B1 #6E55CD #9684DB

Accessibility & contrast

On white

8.57
#4E34B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4E34B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34B1
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34B1#FFFFFF#000000##FFFFFF
##4E34B11.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#20556F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e34b1;
/* rgb */ color: rgb(78, 52, 177);
/* oklch */ color: oklch(43.6% 0.187 285.2);
Tailwind
colors: {
  custom: {
    50: '#8a6ec9',
    500: '#4e34b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e34b1;
$custom-light: #8a6ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34b1",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 177
  },
  "hsl": {
    "h": 252.48,
    "s": 54.585,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43633,
    "c": 0.18657,
    "h": 285.2
  },
  "luminance": 0.0725
}

Semantic roles & 50–950 ramp

primary
#4E34B1
secondary
#B6C57C
accent
#DE4ABF
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E34B1

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

Preview Lab → · Contrast checker → · Palette generator →

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