#4E28C7#4E28C7

#4E28C7 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.3% C 0.224 H 283.3°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#4E28C7
RGBrgb(78, 40, 199)
HSLhsl(254, 67%, 47%)
HSVhsv(254, 80%, 78%)
CMYKcmyk(60.8%, 79.9%, 0%, 22%)
CIE-LABlab(32.39, 56.77, -75.53)
CIE-LCHlch(32.39, 94.49, 306.93°)
OKLaboklab(44.29% 0.0517 -0.2178)
OKLCHoklch(44.29% 0.224 283.3)
XYZxyz(14.2063, 7.2598, 54.6744)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28C7 #A1C728
analogous
#2851C7 #4E28C7 #9E28C7
triadic
#4E28C7 #C74E28 #28C74E
tetradic
#4E28C7 #C72851 #A1C728 #28C79E
square
#4E28C7 #C72851 #A1C728 #28C79E
split-complementary
#4E28C7 #C79E28 #51C728
monochromatic
#261461 #3A1E94 #4E28C7 #7250DC #9B83E6

Accessibility & contrast

On white

8.56
#4E28C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4E28C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28C7
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28C7#FFFFFF#000000##FFFFFF
##4E28C71.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CB
Deuteranopia (green-blind)
#0047C4
Tritanopia (blue-blind)
#005878
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e28c7;
/* rgb */ color: rgb(78, 40, 199);
/* oklch */ color: oklch(44.3% 0.224 283.3);
Tailwind
colors: {
  custom: {
    50: '#8f68d9',
    500: '#4e28c7',
    950: '#000000',
  },
}
SCSS
$custom: #4e28c7;
$custom-light: #8f68d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28c7",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 199
  },
  "hsl": {
    "h": 254.34,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44286,
    "c": 0.22385,
    "h": 283.3
  },
  "luminance": 0.07261
}

Semantic roles & 50–950 ramp

primary
#4E28C7
secondary
#BBCF7C
accent
#E93EC1
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4E28C7

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

Preview Lab → · Contrast checker → · Palette generator →

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