#4E2B7A#4E2B7A

#4E2B7A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.7% C 0.129 H 300.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4E2B7A
RGBrgb(78, 43, 122)
HSLhsl(267, 48%, 32%)
HSVhsv(267, 65%, 48%)
CMYKcmyk(36.1%, 64.8%, 0%, 52.2%)
CIE-LABlab(26.02, 33.52, -39.18)
CIE-LCHlch(26.02, 51.56, 310.55°)
OKLaboklab(37.67% 0.0661 -0.1113)
OKLCHoklch(37.67% 0.129 300.7)
XYZxyz(7.5178, 4.7525, 18.9298)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B7A #577A2B
analogous
#2B307A #4E2B7A #762B7A
triadic
#4E2B7A #7A4E2B #2B7A4E
tetradic
#4E2B7A #7A2B30 #577A2B #2B7A76
square
#4E2B7A #7A2B30 #577A2B #2B7A76
split-complementary
#4E2B7A #7A762B #307A2B
monochromatic
#140B1F #311B4D #4E2B7A #6B3BA7 #8A5AC5

Accessibility & contrast

On white

10.77
#4E2B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E2B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B7A
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B7A#FFFFFF#000000##FFFFFF
##4E2B7A1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#0E3D78
Tritanopia (blue-blind)
#453C4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2b7a;
/* rgb */ color: rgb(78, 43, 122);
/* oklch */ color: oklch(37.7% 0.129 300.7);
Tailwind
colors: {
  custom: {
    50: '#8366a1',
    500: '#4e2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b7a;
$custom-light: #8366a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b7a",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 266.582,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37666,
    "c": 0.12942,
    "h": 300.7
  },
  "luminance": 0.04753
}

Semantic roles & 50–950 ramp

primary
#4E2B7A
secondary
#85AB56
accent
#D7509C
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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