#4E2B78#4E2B78

#4E2B78 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.5% C 0.127 H 301.5°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4E2B78
RGBrgb(78, 43, 120)
HSLhsl(267, 47%, 32%)
HSVhsv(267, 64%, 47%)
CMYKcmyk(35%, 64.2%, 0%, 52.9%)
CIE-LABlab(25.87, 32.97, -38.15)
CIE-LCHlch(25.87, 50.42, 310.84°)
OKLaboklab(37.51% 0.0662 -0.1082)
OKLCHoklch(37.51% 0.127 301.5)
XYZxyz(7.3951, 4.7035, 18.2839)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B78 #55782B
analogous
#2B2F78 #4E2B78 #752B78
triadic
#4E2B78 #784E2B #2B784E
tetradic
#4E2B78 #782B2F #55782B #2B7875
square
#4E2B78 #782B2F #55782B #2B7875
split-complementary
#4E2B78 #78752B #2F782B
monochromatic
#130B1E #311B4B #4E2B78 #6B3BA5 #8A5AC4

Accessibility & contrast

On white

10.82
#4E2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B78
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B78#FFFFFF#000000##FFFFFF
##4E2B781.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#123D76
Tritanopia (blue-blind)
#453B4D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2b78;
/* rgb */ color: rgb(78, 43, 120);
/* oklch */ color: oklch(37.5% 0.127 301.5);
Tailwind
colors: {
  custom: {
    50: '#83669f',
    500: '#4e2b78',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b78;
$custom-light: #83669f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b78",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 267.273,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37514,
    "c": 0.12688,
    "h": 301.5
  },
  "luminance": 0.04704
}

Semantic roles & 50–950 ramp

primary
#4E2B78
secondary
#83AA55
accent
#D7519A
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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