#4E34CC#4E34CC

#4E34CC is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.219 H 281.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#4E34CC
RGBrgb(78, 52, 204)
HSLhsl(250, 60%, 50%)
HSVhsv(250, 75%, 80%)
CMYKcmyk(61.8%, 74.5%, 0%, 20%)
CIE-LABlab(34.87, 52.51, -74.36)
CIE-LCHlch(34.87, 91.03, 305.23°)
OKLaboklab(46.17% 0.0431 -0.2145)
OKLCHoklch(46.17% 0.219 281.4)
XYZxyz(15.2655, 8.4342, 57.9386)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34CC #B2CC34
analogous
#3466CC #4E34CC #9A34CC
triadic
#4E34CC #CC4E34 #34CC4E
tetradic
#4E34CC #CC3466 #B2CC34 #34CC9A
square
#4E34CC #CC3466 #B2CC34 #34CC9A
split-complementary
#4E34CC #CC9A34 #66CC34
monochromatic
#291B6B #3B279C #4E34CC #7965D8 #A396E5

Accessibility & contrast

On white

7.82
#4E34CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4E34CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34CC
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34CC#FFFFFF#000000##FFFFFF
##4E34CC1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D0
Deuteranopia (green-blind)
#004CC9
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e34cc;
/* rgb */ color: rgb(78, 52, 204);
/* oklch */ color: oklch(46.2% 0.219 281.4);
Tailwind
colors: {
  custom: {
    50: '#8f6fdd',
    500: '#4e34cc',
    950: '#000000',
  },
}
SCSS
$custom: #4e34cc;
$custom-light: #8f6fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34cc",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 250.263,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46168,
    "c": 0.21879,
    "h": 281.4
  },
  "luminance": 0.08435
}

Semantic roles & 50–950 ramp

primary
#4E34CC
secondary
#C4D08C
accent
#E345C8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4E34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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