#4E2FC7#4E2FC7

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

Color values

HEX#4E2FC7
RGBrgb(78, 47, 199)
HSLhsl(252, 62%, 48%)
HSVhsv(252, 76%, 78%)
CMYKcmyk(60.8%, 76.4%, 0%, 22%)
CIE-LABlab(33.51, 53.54, -73.69)
CIE-LCHlch(33.51, 91.08, 306.00°)
OKLaboklab(45.07% 0.0476 -0.2125)
OKLCHoklch(45.07% 0.218 282.6)
XYZxyz(14.4640, 7.7752, 54.7603)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FC7 #A8C72F
analogous
#2F5CC7 #4E2FC7 #9A2FC7
triadic
#4E2FC7 #C74E2F #2FC74E
tetradic
#4E2FC7 #C72F5C #A8C72F #2FC79A
square
#4E2FC7 #C72F5C #A8C72F #2FC79A
split-complementary
#4E2FC7 #C79A2F #5CC72F
monochromatic
#271864 #3B2395 #4E2FC7 #755BD8 #9E8CE4

Accessibility & contrast

On white

8.22
#4E2FC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2FC7
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FC7#FFFFFF#000000##FFFFFF
##4E2FC71.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CB
Deuteranopia (green-blind)
#0049C4
Tritanopia (blue-blind)
#005B7A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e2fc7;
/* rgb */ color: rgb(78, 47, 199);
/* oklch */ color: oklch(45.1% 0.218 282.6);
Tailwind
colors: {
  custom: {
    50: '#8e6cd9',
    500: '#4e2fc7',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fc7;
$custom-light: #8e6cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fc7",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 199
  },
  "hsl": {
    "h": 252.237,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45065,
    "c": 0.21775,
    "h": 282.6
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#4E2FC7
secondary
#BFCE84
accent
#E543C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4E2FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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