#4E2D87#4E2D87

#4E2D87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.143 H 295.9°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4E2D87
RGBrgb(78, 45, 135)
HSLhsl(262, 50%, 35%)
HSVhsv(262, 67%, 53%)
CMYKcmyk(42.2%, 66.7%, 0%, 47.1%)
CIE-LABlab(27.42, 36.01, -45.07)
CIE-LCHlch(27.42, 57.69, 308.62°)
OKLaboklab(38.99% 0.0625 -0.1286)
OKLCHoklch(38.99% 0.143 295.9)
XYZxyz(8.4523, 5.2456, 23.4841)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D87 #66872D
analogous
#2D3987 #4E2D87 #7B2D87
triadic
#4E2D87 #874E2D #2D874E
tetradic
#4E2D87 #872D39 #66872D #2D877B
square
#4E2D87 #872D39 #66872D #2D877B
split-complementary
#4E2D87 #877B2D #39872D
monochromatic
#190E2B #331E59 #4E2D87 #693CB5 #8963CB

Accessibility & contrast

On white

10.25
#4E2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D87
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D87#FFFFFF#000000##FFFFFF
##4E2D871.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#3F4256
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2d87;
/* rgb */ color: rgb(78, 45, 135);
/* oklch */ color: oklch(39.0% 0.143 295.9);
Tailwind
colors: {
  custom: {
    50: '#8468ab',
    500: '#4e2d87',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d87;
$custom-light: #8468ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d87",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 262,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38993,
    "c": 0.14298,
    "h": 295.9
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#4E2D87
secondary
#93B25E
accent
#DA4EA6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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