#4E2B7C#4E2B7C

#4E2B7C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.132 H 300.0°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#4E2B7C
RGBrgb(78, 43, 124)
HSLhsl(266, 49%, 33%)
HSVhsv(266, 65%, 49%)
CMYKcmyk(37.1%, 65.3%, 0%, 51.4%)
CIE-LABlab(26.16, 34.07, -40.21)
CIE-LCHlch(26.16, 52.70, 310.28°)
OKLaboklab(37.82% 0.066 -0.1143)
OKLCHoklch(37.82% 0.132 300)
XYZxyz(7.6430, 4.8026, 19.5892)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B7C #597C2B
analogous
#2B307C #4E2B7C #762B7C
triadic
#4E2B7C #7C4E2B #2B7C4E
tetradic
#4E2B7C #7C2B30 #597C2B #2B7C76
square
#4E2B7C #7C2B30 #597C2B #2B7C76
split-complementary
#4E2B7C #7C762B #307C2B
monochromatic
#150B21 #311B4F #4E2B7C #6B3BA9 #895BC6

Accessibility & contrast

On white

10.71
#4E2B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2B7C
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B7C#FFFFFF#000000##FFFFFF
##4E2B7C1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#093D7A
Tritanopia (blue-blind)
#443D4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2b7c;
/* rgb */ color: rgb(78, 43, 124);
/* oklch */ color: oklch(37.8% 0.132 300.0);
Tailwind
colors: {
  custom: {
    50: '#8366a2',
    500: '#4e2b7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b7c;
$custom-light: #8366a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b7c",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 265.926,
    "s": 48.503,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37819,
    "c": 0.13195,
    "h": 300
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#4E2B7C
secondary
#87AC57
accent
#D8509D
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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