#4E2FC8#4E2FC8

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

Color values

HEX#4E2FC8
RGBrgb(78, 47, 200)
HSLhsl(252, 62%, 48%)
HSVhsv(252, 77%, 78%)
CMYKcmyk(61%, 76.5%, 0%, 21.6%)
CIE-LABlab(33.61, 53.83, -74.11)
CIE-LCHlch(33.61, 91.59, 305.99°)
OKLaboklab(45.16% 0.0473 -0.2137)
OKLCHoklch(45.16% 0.219 282.5)
XYZxyz(14.5805, 7.8218, 55.3738)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FC8 #A9C82F
analogous
#2F5CC8 #4E2FC8 #9A2FC8
triadic
#4E2FC8 #C84E2F #2FC84E
tetradic
#4E2FC8 #C82F5C #A9C82F #2FC89A
square
#4E2FC8 #C82F5C #A9C82F #2FC89A
split-complementary
#4E2FC8 #C89A2F #5CC82F
monochromatic
#271865 #3B2396 #4E2FC8 #755CD9 #9F8DE4

Accessibility & contrast

On white

8.19
#4E2FC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2FC8
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FC8#FFFFFF#000000##FFFFFF
##4E2FC81.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CC
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#005B7A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e2fc8;
/* rgb */ color: rgb(78, 47, 200);
/* oklch */ color: oklch(45.2% 0.219 282.5);
Tailwind
colors: {
  custom: {
    50: '#8e6cda',
    500: '#4e2fc8',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fc8;
$custom-light: #8e6cda;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fc8",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 252.157,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45164,
    "c": 0.21889,
    "h": 282.5
  },
  "luminance": 0.07823
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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