#4E2EC9#4E2EC9

#4E2EC9 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.221 H 282.4°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#4E2EC9
RGBrgb(78, 46, 201)
HSLhsl(252, 63%, 48%)
HSVhsv(252, 77%, 79%)
CMYKcmyk(61.2%, 77.1%, 0%, 21.2%)
CIE-LABlab(33.54, 54.59, -74.80)
CIE-LCHlch(33.54, 92.61, 306.12°)
OKLaboklab(45.15% 0.0476 -0.2157)
OKLCHoklch(45.15% 0.221 282.4)
XYZxyz(14.6582, 7.7897, 55.9782)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2EC9 #A9C92E
analogous
#2E5BC9 #4E2EC9 #9B2EC9
triadic
#4E2EC9 #C94E2E #2EC94E
tetradic
#4E2EC9 #C92E5B #A9C92E #2EC99B
square
#4E2EC9 #C92E5B #A9C92E #2EC99B
split-complementary
#4E2EC9 #C99B2E #5BC92E
monochromatic
#271765 #3B2397 #4E2EC9 #755BD9 #9F8DE5

Accessibility & contrast

On white

8.21
#4E2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4E2EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2EC9
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2EC9#FFFFFF#000000##FFFFFF
##4E2EC91.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#0049C6
Tritanopia (blue-blind)
#005B7B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e2ec9;
/* rgb */ color: rgb(78, 46, 201);
/* oklch */ color: oklch(45.1% 0.221 282.4);
Tailwind
colors: {
  custom: {
    50: '#8e6bdb',
    500: '#4e2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ec9;
$custom-light: #8e6bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ec9",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 252.387,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45146,
    "c": 0.22094,
    "h": 282.4
  },
  "luminance": 0.07791
}

Semantic roles & 50–950 ramp

primary
#4E2EC9
secondary
#BFCF84
accent
#E642C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4E2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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