#4E2F87#4E2F87

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

Color values

HEX#4E2F87
RGBrgb(78, 47, 135)
HSLhsl(261, 48%, 36%)
HSVhsv(261, 65%, 53%)
CMYKcmyk(42.2%, 65.2%, 0%, 47.1%)
CIE-LABlab(27.85, 34.85, -44.38)
CIE-LCHlch(27.85, 56.43, 308.14°)
OKLaboklab(39.3% 0.0602 -0.1266)
OKLCHoklch(39.3% 0.14 295.4)
XYZxyz(8.5304, 5.4018, 23.5102)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F87 #68872F
analogous
#2F3C87 #4E2F87 #7A2F87
triadic
#4E2F87 #874E2F #2F874E
tetradic
#4E2F87 #872F3C #68872F #2F877A
square
#4E2F87 #872F3C #68872F #2F877A
split-complementary
#4E2F87 #877A2F #3C872F
monochromatic
#1A0F2C #341F5A #4E2F87 #683FB4 #8A66CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2F87#FFFFFF#000000##FFFFFF
##4E2F871.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)
#00428A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#3F4356
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2f87;
/* rgb */ color: rgb(78, 47, 135);
/* oklch */ color: oklch(39.3% 0.140 295.4);
Tailwind
colors: {
  custom: {
    50: '#8469ab',
    500: '#4e2f87',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f87;
$custom-light: #8469ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f87",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 261.136,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39302,
    "c": 0.14013,
    "h": 295.4
  },
  "luminance": 0.05402
}

Semantic roles & 50–950 ramp

primary
#4E2F87
secondary
#95B161
accent
#D850A8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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