#4E2D82#4E2D82

#4E2D82 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.137 H 297.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4E2D82
RGBrgb(78, 45, 130)
HSLhsl(263, 49%, 34%)
HSVhsv(263, 65%, 51%)
CMYKcmyk(40%, 65.4%, 0%, 49%)
CIE-LABlab(27.04, 34.59, -42.57)
CIE-LCHlch(27.04, 54.85, 309.10°)
OKLaboklab(38.6% 0.063 -0.1212)
OKLCHoklch(38.6% 0.137 297.5)
XYZxyz(8.1085, 5.1081, 21.6735)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D82 #61822D
analogous
#2D3782 #4E2D82 #792D82
triadic
#4E2D82 #824E2D #2D824E
tetradic
#4E2D82 #822D37 #61822D #2D8279
square
#4E2D82 #822D37 #61822D #2D8279
split-complementary
#4E2D82 #82792D #37822D
monochromatic
#170E27 #331D55 #4E2D82 #693DAF #8961C8

Accessibility & contrast

On white

10.39
#4E2D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D82
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D82#FFFFFF#000000##FFFFFF
##4E2D821.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004085
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#424053
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2d82;
/* rgb */ color: rgb(78, 45, 130);
/* oklch */ color: oklch(38.6% 0.137 297.5);
Tailwind
colors: {
  custom: {
    50: '#8468a7',
    500: '#4e2d82',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d82;
$custom-light: #8468a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d82",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 263.294,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38595,
    "c": 0.13663,
    "h": 297.5
  },
  "luminance": 0.05108
}

Semantic roles & 50–950 ramp

primary
#4E2D82
secondary
#8FAF5C
accent
#D850A3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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