#4E2B7B#4E2B7B

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

Color values

HEX#4E2B7B
RGBrgb(78, 43, 123)
HSLhsl(266, 48%, 33%)
HSVhsv(266, 65%, 48%)
CMYKcmyk(36.6%, 65%, 0%, 51.8%)
CIE-LABlab(26.09, 33.79, -39.69)
CIE-LCHlch(26.09, 52.13, 310.41°)
OKLaboklab(37.74% 0.066 -0.1128)
OKLCHoklch(37.74% 0.131 300.4)
XYZxyz(7.5800, 4.7775, 19.2578)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B7B #587B2B
analogous
#2B307B #4E2B7B #762B7B
triadic
#4E2B7B #7B4E2B #2B7B4E
tetradic
#4E2B7B #7B2B30 #587B2B #2B7B76
square
#4E2B7B #7B2B30 #587B2B #2B7B76
split-complementary
#4E2B7B #7B762B #307B2B
monochromatic
#140B20 #311B4E #4E2B7B #6B3BA8 #8A5BC6

Accessibility & contrast

On white

10.74
#4E2B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E2B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B7B
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B7B#FFFFFF#000000##FFFFFF
##4E2B7B1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#0C3D79
Tritanopia (blue-blind)
#443C4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2b7b;
/* rgb */ color: rgb(78, 43, 123);
/* oklch */ color: oklch(37.7% 0.131 300.4);
Tailwind
colors: {
  custom: {
    50: '#8366a2',
    500: '#4e2b7b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b7b;
$custom-light: #8366a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b7b",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 123
  },
  "hsl": {
    "h": 266.25,
    "s": 48.193,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37742,
    "c": 0.13068,
    "h": 300.4
  },
  "luminance": 0.04778
}

Semantic roles & 50–950 ramp

primary
#4E2B7B
secondary
#86AB56
accent
#D8509C
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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