#4E34C2#4E34C2

#4E34C2 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.2% C 0.207 H 282.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#4E34C2
RGBrgb(78, 52, 194)
HSLhsl(251, 58%, 48%)
HSVhsv(251, 73%, 76%)
CMYKcmyk(59.8%, 73.2%, 0%, 23.9%)
CIE-LABlab(33.92, 49.54, -70.08)
CIE-LCHlch(33.92, 85.83, 305.26°)
OKLaboklab(45.21% 0.0454 -0.202)
OKLCHoklch(45.21% 0.207 282.7)
XYZxyz(14.1045, 7.9698, 51.8236)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34C2 #A8C234
analogous
#3461C2 #4E34C2 #9534C2
triadic
#4E34C2 #C24E34 #34C24E
tetradic
#4E34C2 #C23461 #A8C234 #34C295
square
#4E34C2 #C23461 #A8C234 #34C295
split-complementary
#4E34C2 #C29534 #61C234
monochromatic
#271A61 #3B2792 #4E34C2 #755FD4 #9E8FE1

Accessibility & contrast

On white

8.09
#4E34C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E34C2
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34C2#FFFFFF#000000##FFFFFF
##4E34C21.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e34c2;
/* rgb */ color: rgb(78, 52, 194);
/* oklch */ color: oklch(45.2% 0.207 282.7);
Tailwind
colors: {
  custom: {
    50: '#8d6ed6',
    500: '#4e34c2',
    950: '#000000',
  },
}
SCSS
$custom: #4e34c2;
$custom-light: #8d6ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34c2",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 250.986,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45209,
    "c": 0.20704,
    "h": 282.7
  },
  "luminance": 0.07971
}

Semantic roles & 50–950 ramp

primary
#4E34C2
secondary
#BFCC86
accent
#E147C5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4E34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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