#4E2ECA#4E2ECA

#4E2ECA is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.222 H 282.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#4E2ECA
RGBrgb(78, 46, 202)
HSLhsl(252, 63%, 49%)
HSVhsv(252, 77%, 79%)
CMYKcmyk(61.4%, 77.2%, 0%, 20.8%)
CIE-LABlab(33.64, 54.88, -75.22)
CIE-LCHlch(33.64, 93.12, 306.11°)
OKLaboklab(45.25% 0.0474 -0.217)
OKLCHoklch(45.25% 0.222 282.3)
XYZxyz(14.7762, 7.8369, 56.5997)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2ECA #AACA2E
analogous
#2E5CCA #4E2ECA #9C2ECA
triadic
#4E2ECA #CA4E2E #2ECA4E
tetradic
#4E2ECA #CA2E5C #AACA2E #2ECA9C
square
#4E2ECA #CA2E5C #AACA2E #2ECA9C
split-complementary
#4E2ECA #CA9C2E #5CCA2E
monochromatic
#281766 #3B2398 #4E2ECA #755BDA #9F8DE5

Accessibility & contrast

On white

8.18
#4E2ECA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4E2ECA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2ECA
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2ECA#FFFFFF#000000##FFFFFF
##4E2ECA1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#004AC7
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e2eca;
/* rgb */ color: rgb(78, 46, 202);
/* oklch */ color: oklch(45.2% 0.222 282.3);
Tailwind
colors: {
  custom: {
    50: '#8f6bdb',
    500: '#4e2eca',
    950: '#000000',
  },
}
SCSS
$custom: #4e2eca;
$custom-light: #8f6bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2eca",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 202
  },
  "hsl": {
    "h": 252.308,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45246,
    "c": 0.22207,
    "h": 282.3
  },
  "luminance": 0.07838
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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