#4E2888#4E2888

#4E2888 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.151 H 296.8°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4E2888
RGBrgb(78, 40, 136)
HSLhsl(264, 55%, 35%)
HSVhsv(264, 71%, 53%)
CMYKcmyk(42.6%, 70.6%, 0%, 46.7%)
CIE-LABlab(26.49, 39.07, -47.21)
CIE-LCHlch(26.49, 61.28, 309.61°)
OKLaboklab(38.35% 0.068 -0.1349)
OKLCHoklch(38.35% 0.151 296.8)
XYZxyz(8.3435, 4.9147, 23.7968)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2888 #628828
analogous
#283288 #4E2888 #7E2888
triadic
#4E2888 #884E28 #28884E
tetradic
#4E2888 #882832 #628828 #28887E
square
#4E2888 #882832 #628828 #28887E
split-complementary
#4E2888 #887E28 #328828
monochromatic
#180C29 #331A59 #4E2888 #6936B7 #895BCF

Accessibility & contrast

On white

10.59
#4E2888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E2888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2888
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2888#FFFFFF#000000##FFFFFF
##4E28881.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#3F3F55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2888;
/* rgb */ color: rgb(78, 40, 136);
/* oklch */ color: oklch(38.3% 0.151 296.8);
Tailwind
colors: {
  custom: {
    50: '#8565ab',
    500: '#4e2888',
    950: '#000000',
  },
}
SCSS
$custom: #4e2888;
$custom-light: #8565ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2888",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 263.75,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38348,
    "c": 0.15104,
    "h": 296.8
  },
  "luminance": 0.04915
}

Semantic roles & 50–950 ramp

primary
#4E2888
secondary
#90B458
accent
#DE4AA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2888

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

Preview Lab → · Contrast checker → · Palette generator →

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