#4E2D86#4E2D86

#4E2D86 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.142 H 296.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4E2D86
RGBrgb(78, 45, 134)
HSLhsl(262, 50%, 35%)
HSVhsv(262, 66%, 53%)
CMYKcmyk(41.8%, 66.4%, 0%, 47.5%)
CIE-LABlab(27.35, 35.72, -44.58)
CIE-LCHlch(27.35, 57.12, 308.71°)
OKLaboklab(38.91% 0.0626 -0.1271)
OKLCHoklch(38.91% 0.142 296.2)
XYZxyz(8.3822, 5.2175, 23.1151)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D86 #65862D
analogous
#2D3986 #4E2D86 #7A2D86
triadic
#4E2D86 #864E2D #2D864E
tetradic
#4E2D86 #862D39 #65862D #2D867A
square
#4E2D86 #862D39 #65862D #2D867A
split-complementary
#4E2D86 #867A2D #39862D
monochromatic
#190E2A #331E58 #4E2D86 #693CB4 #8963CB

Accessibility & contrast

On white

10.28
#4E2D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E2D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D86
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D86#FFFFFF#000000##FFFFFF
##4E2D861.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#404155
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2d86;
/* rgb */ color: rgb(78, 45, 134);
/* oklch */ color: oklch(38.9% 0.142 296.2);
Tailwind
colors: {
  custom: {
    50: '#8468aa',
    500: '#4e2d86',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d86;
$custom-light: #8468aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d86",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 262.247,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38913,
    "c": 0.14172,
    "h": 296.2
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#4E2D86
secondary
#92B15E
accent
#D94FA6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2D86

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

Preview Lab → · Contrast checker → · Palette generator →

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