#4E2B7E#4E2B7E

#4E2B7E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.0% C 0.134 H 299.3°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#4E2B7E
RGBrgb(78, 43, 126)
HSLhsl(265, 49%, 33%)
HSVhsv(265, 66%, 49%)
CMYKcmyk(38.1%, 65.9%, 0%, 50.6%)
CIE-LABlab(26.31, 34.62, -41.23)
CIE-LCHlch(26.31, 53.84, 310.02°)
OKLaboklab(37.97% 0.0658 -0.1173)
OKLCHoklch(37.97% 0.134 299.3)
XYZxyz(7.7707, 4.8537, 20.2621)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B7E #5B7E2B
analogous
#2B327E #4E2B7E #772B7E
triadic
#4E2B7E #7E4E2B #2B7E4E
tetradic
#4E2B7E #7E2B32 #5B7E2B #2B7E77
square
#4E2B7E #7E2B32 #5B7E2B #2B7E77
split-complementary
#4E2B7E #7E772B #327E2B
monochromatic
#160C23 #321B50 #4E2B7E #6A3BAC #895CC7

Accessibility & contrast

On white

10.66
#4E2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E2B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B7E
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B7E#FFFFFF#000000##FFFFFF
##4E2B7E1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#043E7C
Tritanopia (blue-blind)
#433D50
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2b7e;
/* rgb */ color: rgb(78, 43, 126);
/* oklch */ color: oklch(38.0% 0.134 299.3);
Tailwind
colors: {
  custom: {
    50: '#8466a4',
    500: '#4e2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b7e;
$custom-light: #8466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b7e",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 265.301,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37974,
    "c": 0.13448,
    "h": 299.3
  },
  "luminance": 0.04854
}

Semantic roles & 50–950 ramp

primary
#4E2B7E
secondary
#89AD58
accent
#D94F9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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