#4E2B82#4E2B82

#4E2B82 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.140 H 298.0°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4E2B82
RGBrgb(78, 43, 130)
HSLhsl(264, 50%, 34%)
HSVhsv(264, 67%, 51%)
CMYKcmyk(40%, 66.9%, 0%, 49%)
CIE-LABlab(26.62, 35.74, -43.25)
CIE-LCHlch(26.62, 56.11, 309.56°)
OKLaboklab(38.29% 0.0654 -0.1232)
OKLCHoklch(38.29% 0.14 298)
XYZxyz(8.0340, 4.9590, 21.6487)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B82 #5F822B
analogous
#2B3482 #4E2B82 #7A2B82
triadic
#4E2B82 #824E2B #2B824E
tetradic
#4E2B82 #822B34 #5F822B #2B827A
square
#4E2B82 #822B34 #5F822B #2B827A
split-complementary
#4E2B82 #827A2B #34822B
monochromatic
#170D26 #321C54 #4E2B82 #6A3AB0 #895ECA

Accessibility & contrast

On white

10.54
#4E2B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2B82
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B82#FFFFFF#000000##FFFFFF
##4E2B821.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#423F52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2b82;
/* rgb */ color: rgb(78, 43, 130);
/* oklch */ color: oklch(38.3% 0.140 298.0);
Tailwind
colors: {
  custom: {
    50: '#8467a7',
    500: '#4e2b82',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b82;
$custom-light: #8467a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b82",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 130
  },
  "hsl": {
    "h": 264.138,
    "s": 50.289,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3829,
    "c": 0.13952,
    "h": 298
  },
  "luminance": 0.04959
}

Semantic roles & 50–950 ramp

primary
#4E2B82
secondary
#8DB059
accent
#DA4EA2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2B82

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

Preview Lab → · Contrast checker → · Palette generator →

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