#4E2895#4E2895

#4E2895 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.167 H 293.1°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#4E2895
RGBrgb(78, 40, 149)
HSLhsl(261, 58%, 37%)
HSVhsv(261, 73%, 58%)
CMYKcmyk(47.7%, 73.2%, 0%, 41.6%)
CIE-LABlab(27.59, 42.70, -53.46)
CIE-LCHlch(27.59, 68.42, 308.62°)
OKLaboklab(39.48% 0.0655 -0.1532)
OKLCHoklch(39.48% 0.167 293.1)
XYZxyz(9.3240, 5.3069, 28.9610)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2895 #6F9528
analogous
#283995 #4E2895 #842895
triadic
#4E2895 #954E28 #28954E
tetradic
#4E2895 #952839 #6F9528 #289584
square
#4E2895 #952839 #6F9528 #289584
split-complementary
#4E2895 #958428 #399528
monochromatic
#1B0E35 #351B65 #4E2895 #6735C5 #8A62D5

Accessibility & contrast

On white

10.19
#4E2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4E2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2895
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2895#FFFFFF#000000##FFFFFF
##4E28951.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#39445C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2895;
/* rgb */ color: rgb(78, 40, 149);
/* oklch */ color: oklch(39.5% 0.167 293.1);
Tailwind
colors: {
  custom: {
    50: '#8765b5',
    500: '#4e2895',
    950: '#000000',
  },
}
SCSS
$custom: #4e2895;
$custom-light: #8765b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2895",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 260.917,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39475,
    "c": 0.16664,
    "h": 293.1
  },
  "luminance": 0.05307
}

Semantic roles & 50–950 ramp

primary
#4E2895
secondary
#9ABB5E
accent
#E147AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2895

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

Preview Lab → · Contrast checker → · Palette generator →

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