#4E2FE2#4E2FE2

#4E2FE2 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.8% C 0.248 H 279.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#4E2FE2
RGBrgb(78, 47, 226)
HSLhsl(250, 76%, 54%)
HSVhsv(250, 79%, 89%)
CMYKcmyk(65.5%, 79.2%, 0%, 11.4%)
CIE-LABlab(36.26, 61.26, -84.76)
CIE-LCHlch(36.26, 104.57, 305.86°)
OKLaboklab(47.79% 0.0401 -0.2447)
OKLCHoklch(47.79% 0.248 279.3)
XYZxyz(17.8815, 9.1422, 72.7591)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FE2 #C3E22F
analogous
#2F69E2 #4E2FE2 #A72FE2
triadic
#4E2FE2 #E24E2F #2FE24E
tetradic
#4E2FE2 #E22F69 #C3E22F #2FE2A7
square
#4E2FE2 #E22F69 #C3E22F #2FE2A7
split-complementary
#4E2FE2 #E2A72F #69E22F
monochromatic
#261284 #361ABA #4E2FE2 #7C65E9 #A99AF1

Accessibility & contrast

On white

7.42
#4E2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4E2FE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FE2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FE2#FFFFFF#000000##FFFFFF
##4E2FE21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE7
Deuteranopia (green-blind)
#004EDF
Tritanopia (blue-blind)
#006689
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4e2fe2;
/* rgb */ color: rgb(78, 47, 226);
/* oklch */ color: oklch(47.8% 0.248 279.3);
Tailwind
colors: {
  custom: {
    50: '#936ded',
    500: '#4e2fe2',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fe2;
$custom-light: #936ded;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fe2",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 250.391,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47794,
    "c": 0.248,
    "h": 279.3
  },
  "luminance": 0.09144
}

Semantic roles & 50–950 ramp

primary
#4E2FE2
secondary
#CFDD90
accent
#F236D1
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #4E2FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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