#4E2892#4E2892

#4E2892 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.163 H 293.9°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4E2892
RGBrgb(78, 40, 146)
HSLhsl(262, 57%, 36%)
HSVhsv(262, 73%, 57%)
CMYKcmyk(46.6%, 72.6%, 0%, 42.7%)
CIE-LABlab(27.33, 41.86, -52.04)
CIE-LCHlch(27.33, 66.79, 308.81°)
OKLaboklab(39.21% 0.0661 -0.1491)
OKLCHoklch(39.21% 0.163 293.9)
XYZxyz(9.0876, 5.2123, 27.7158)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2892 #6C9228
analogous
#283792 #4E2892 #832892
triadic
#4E2892 #924E28 #28924E
tetradic
#4E2892 #922837 #6C9228 #289283
square
#4E2892 #922837 #6C9228 #289283
split-complementary
#4E2892 #928328 #379228
monochromatic
#1B0E32 #341B62 #4E2892 #6835C2 #8A61D4

Accessibility & contrast

On white

10.28
#4E2892 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E2892 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2892
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2892#FFFFFF#000000##FFFFFF
##4E28921.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#003F90
Tritanopia (blue-blind)
#3A435A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2892;
/* rgb */ color: rgb(78, 40, 146);
/* oklch */ color: oklch(39.2% 0.163 293.9);
Tailwind
colors: {
  custom: {
    50: '#8665b3',
    500: '#4e2892',
    950: '#000000',
  },
}
SCSS
$custom: #4e2892;
$custom-light: #8665b3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2892",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 146
  },
  "hsl": {
    "h": 261.509,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39209,
    "c": 0.16307,
    "h": 293.9
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#4E2892
secondary
#98B95D
accent
#E048AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2892

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

Preview Lab → · Contrast checker → · Palette generator →

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