#4E2987#4E2987

#4E2987 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.148 H 296.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4E2987
RGBrgb(78, 41, 135)
HSLhsl(264, 53%, 35%)
HSVhsv(264, 70%, 53%)
CMYKcmyk(42.2%, 69.6%, 0%, 47.1%)
CIE-LABlab(26.61, 38.25, -46.40)
CIE-LCHlch(26.61, 60.13, 309.50°)
OKLaboklab(38.41% 0.0671 -0.1325)
OKLCHoklch(38.41% 0.149 296.8)
XYZxyz(8.3069, 4.9547, 23.4357)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2987 #628729
analogous
#293387 #4E2987 #7D2987
triadic
#4E2987 #874E29 #29874E
tetradic
#4E2987 #872933 #628729 #29877D
square
#4E2987 #872933 #628729 #29877D
split-complementary
#4E2987 #877D29 #338729
monochromatic
#180C29 #331B58 #4E2987 #6937B6 #895DCE

Accessibility & contrast

On white

10.55
#4E2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2987
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2987#FFFFFF#000000##FFFFFF
##4E29871.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#403F54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2987;
/* rgb */ color: rgb(78, 41, 135);
/* oklch */ color: oklch(38.4% 0.148 296.8);
Tailwind
colors: {
  custom: {
    50: '#8565ab',
    500: '#4e2987',
    950: '#000000',
  },
}
SCSS
$custom: #4e2987;
$custom-light: #8565ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2987",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 263.617,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38405,
    "c": 0.1485,
    "h": 296.8
  },
  "luminance": 0.04955
}

Semantic roles & 50–950 ramp

primary
#4E2987
secondary
#90B359
accent
#DD4BA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2987

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

Preview Lab → · Contrast checker → · Palette generator →

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