#4E34C1#4E34C1

#4E34C1 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.1% C 0.206 H 282.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#4E34C1
RGBrgb(78, 52, 193)
HSLhsl(251, 58%, 48%)
HSVhsv(251, 73%, 76%)
CMYKcmyk(59.6%, 73.1%, 0%, 24.3%)
CIE-LABlab(33.83, 49.24, -69.65)
CIE-LCHlch(33.83, 85.30, 305.26°)
OKLaboklab(45.11% 0.0456 -0.2007)
OKLCHoklch(45.11% 0.206 282.8)
XYZxyz(13.9925, 7.9250, 51.2341)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34C1 #A7C134
analogous
#3460C1 #4E34C1 #9434C1
triadic
#4E34C1 #C14E34 #34C14E
tetradic
#4E34C1 #C13460 #A7C134 #34C194
square
#4E34C1 #C13460 #A7C134 #34C194
split-complementary
#4E34C1 #C19434 #60C134
monochromatic
#271A61 #3B2791 #4E34C1 #745ED4 #9E8FE1

Accessibility & contrast

On white

8.12
#4E34C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4E34C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34C1
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34C1#FFFFFF#000000##FFFFFF
##4E34C11.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C5
Deuteranopia (green-blind)
#004BBE
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e34c1;
/* rgb */ color: rgb(78, 52, 193);
/* oklch */ color: oklch(45.1% 0.206 282.8);
Tailwind
colors: {
  custom: {
    50: '#8d6ed5',
    500: '#4e34c1',
    950: '#000000',
  },
}
SCSS
$custom: #4e34c1;
$custom-light: #8d6ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34c1",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 193
  },
  "hsl": {
    "h": 251.064,
    "s": 57.551,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45114,
    "c": 0.20586,
    "h": 282.8
  },
  "luminance": 0.07926
}

Semantic roles & 50–950 ramp

primary
#4E34C1
secondary
#BECB86
accent
#E147C4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4E34C1

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

Preview Lab → · Contrast checker → · Palette generator →

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