#4E2898#4E2898

#4E2898 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.170 H 292.4°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4E2898
RGBrgb(78, 40, 152)
HSLhsl(260, 58%, 38%)
HSVhsv(260, 74%, 60%)
CMYKcmyk(48.7%, 73.7%, 0%, 40.4%)
CIE-LABlab(27.86, 43.55, -54.87)
CIE-LCHlch(27.86, 70.05, 308.44°)
OKLaboklab(39.74% 0.0648 -0.1574)
OKLCHoklch(39.74% 0.17 292.4)
XYZxyz(9.5666, 5.4040, 30.2387)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2898 #729828
analogous
#283A98 #4E2898 #862898
triadic
#4E2898 #984E28 #28984E
tetradic
#4E2898 #98283A #729828 #289886
square
#4E2898 #98283A #729828 #289886
split-complementary
#4E2898 #988628 #3A9828
monochromatic
#1C0F37 #351B68 #4E2898 #6735C8 #8B64D6

Accessibility & contrast

On white

10.09
#4E2898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4E2898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2898
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2898#FFFFFF#000000##FFFFFF
##4E28981.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#37455D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2898;
/* rgb */ color: rgb(78, 40, 152);
/* oklch */ color: oklch(39.7% 0.170 292.4);
Tailwind
colors: {
  custom: {
    50: '#8766b7',
    500: '#4e2898',
    950: '#000000',
  },
}
SCSS
$custom: #4e2898;
$custom-light: #8766b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2898",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 260.357,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39744,
    "c": 0.1702,
    "h": 292.4
  },
  "luminance": 0.05404
}

Semantic roles & 50–950 ramp

primary
#4E2898
secondary
#9DBC60
accent
#E246AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2898

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

Preview Lab → · Contrast checker → · Palette generator →

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