#4E2ECB#4E2ECB

#4E2ECB is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.223 H 282.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#4E2ECB
RGBrgb(78, 46, 203)
HSLhsl(252, 63%, 49%)
HSVhsv(252, 77%, 80%)
CMYKcmyk(61.6%, 77.3%, 0%, 20.4%)
CIE-LABlab(33.74, 55.17, -75.64)
CIE-LCHlch(33.74, 93.62, 306.11°)
OKLaboklab(45.35% 0.0471 -0.2182)
OKLCHoklch(45.35% 0.223 282.2)
XYZxyz(14.8950, 7.8844, 57.2253)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2ECB #ABCB2E
analogous
#2E5DCB #4E2ECB #9D2ECB
triadic
#4E2ECB #CB4E2E #2ECB4E
tetradic
#4E2ECB #CB2E5D #ABCB2E #2ECB9D
square
#4E2ECB #CB2E5D #ABCB2E #2ECB9D
split-complementary
#4E2ECB #CB9D2E #5DCB2E
monochromatic
#281767 #3B2399 #4E2ECB #765CDA #A08EE5

Accessibility & contrast

On white

8.15
#4E2ECB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4E2ECB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2ECB
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2ECB#FFFFFF#000000##FFFFFF
##4E2ECB1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CF
Deuteranopia (green-blind)
#004AC8
Tritanopia (blue-blind)
#005C7C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e2ecb;
/* rgb */ color: rgb(78, 46, 203);
/* oklch */ color: oklch(45.3% 0.223 282.2);
Tailwind
colors: {
  custom: {
    50: '#8f6bdc',
    500: '#4e2ecb',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ecb;
$custom-light: #8f6bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ecb",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 203
  },
  "hsl": {
    "h": 252.229,
    "s": 63.052,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45346,
    "c": 0.2232,
    "h": 282.2
  },
  "luminance": 0.07885
}

Semantic roles & 50–950 ramp

primary
#4E2ECB
secondary
#C1D085
accent
#E642C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4E2ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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