#4E34CD#4E34CD

#4E34CD is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.3% C 0.220 H 281.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#4E34CD
RGBrgb(78, 52, 205)
HSLhsl(250, 60%, 50%)
HSVhsv(250, 75%, 80%)
CMYKcmyk(62%, 74.6%, 0%, 19.6%)
CIE-LABlab(34.97, 52.81, -74.78)
CIE-LCHlch(34.97, 91.55, 305.23°)
OKLaboklab(46.27% 0.0429 -0.2157)
OKLCHoklch(46.27% 0.22 281.2)
XYZxyz(15.3859, 8.4823, 58.5722)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34CD #B3CD34
analogous
#3466CD #4E34CD #9A34CD
triadic
#4E34CD #CD4E34 #34CD4E
tetradic
#4E34CD #CD3466 #B3CD34 #34CD9A
square
#4E34CD #CD3466 #B3CD34 #34CD9A
split-complementary
#4E34CD #CD9A34 #66CD34
monochromatic
#281B6C #3B279D #4E34CD #7965D9 #A496E5

Accessibility & contrast

On white

7.79
#4E34CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4E34CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34CD
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34CD#FFFFFF#000000##FFFFFF
##4E34CD1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D1
Deuteranopia (green-blind)
#004DCA
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e34cd;
/* rgb */ color: rgb(78, 52, 205);
/* oklch */ color: oklch(46.3% 0.220 281.2);
Tailwind
colors: {
  custom: {
    50: '#8f6fde',
    500: '#4e34cd',
    950: '#000000',
  },
}
SCSS
$custom: #4e34cd;
$custom-light: #8f6fde;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34cd",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 250.196,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46265,
    "c": 0.21995,
    "h": 281.2
  },
  "luminance": 0.08483
}

Semantic roles & 50–950 ramp

primary
#4E34CD
secondary
#C5D18C
accent
#E444C9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4E34CD

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

Preview Lab → · Contrast checker → · Palette generator →

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