#4E2B8B#4E2B8B

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

Color values

HEX#4E2B8B
RGBrgb(78, 43, 139)
HSLhsl(262, 53%, 36%)
HSVhsv(262, 69%, 55%)
CMYKcmyk(43.9%, 69.1%, 0%, 45.5%)
CIE-LABlab(27.33, 38.27, -47.72)
CIE-LCHlch(27.33, 61.17, 308.73°)
OKLaboklab(39.03% 0.0643 -0.1364)
OKLCHoklch(39.03% 0.151 295.2)
XYZxyz(8.6647, 5.2113, 24.9705)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B8B #688B2B
analogous
#2B388B #4E2B8B #7E2B8B
triadic
#4E2B8B #8B4E2B #2B8B4E
tetradic
#4E2B8B #8B2B38 #688B2B #2B8B7E
square
#4E2B8B #8B2B38 #688B2B #2B8B7E
split-complementary
#4E2B8B #8B7E2B #388B2B
monochromatic
#1A0E2E #341D5C #4E2B8B #6839BA #8A62CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2B8B#FFFFFF#000000##FFFFFF
##4E2B8B1.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)
#00418E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#3E4257
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2b8b;
/* rgb */ color: rgb(78, 43, 139);
/* oklch */ color: oklch(39.0% 0.151 295.2);
Tailwind
colors: {
  custom: {
    50: '#8567ae',
    500: '#4e2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b8b;
$custom-light: #8567ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b8b",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 261.875,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39025,
    "c": 0.15075,
    "h": 295.2
  },
  "luminance": 0.05212
}

Semantic roles & 50–950 ramp

primary
#4E2B8B
secondary
#95B55D
accent
#DC4CA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4E2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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