#4E2F78#4E2F78

#4E2F78 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.121 H 300.3°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4E2F78
RGBrgb(78, 47, 120)
HSLhsl(265, 44%, 33%)
HSVhsv(265, 61%, 47%)
CMYKcmyk(35%, 60.8%, 0%, 52.9%)
CIE-LABlab(26.76, 30.61, -36.72)
CIE-LCHlch(26.76, 47.80, 309.81°)
OKLaboklab(38.16% 0.0609 -0.104)
OKLCHoklch(38.16% 0.121 300.3)
XYZxyz(7.5478, 5.0087, 18.3348)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F78 #59782F
analogous
#2F3578 #4E2F78 #722F78
triadic
#4E2F78 #784E2F #2F784E
tetradic
#4E2F78 #782F35 #59782F #2F7872
square
#4E2F78 #782F35 #59782F #2F7872
split-complementary
#4E2F78 #78722F #35782F
monochromatic
#150D20 #311E4C #4E2F78 #6B40A4 #8960C1

Accessibility & contrast

On white

10.49
#4E2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F78
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F78#FFFFFF#000000##FFFFFF
##4E2F781.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3F7A
Deuteranopia (green-blind)
#193F76
Tritanopia (blue-blind)
#453E4E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2f78;
/* rgb */ color: rgb(78, 47, 120);
/* oklch */ color: oklch(38.2% 0.121 300.3);
Tailwind
colors: {
  custom: {
    50: '#83699f',
    500: '#4e2f78',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f78;
$custom-light: #83699f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f78",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 265.479,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38161,
    "c": 0.12056,
    "h": 300.3
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

primary
#4E2F78
secondary
#87A85B
accent
#D3549D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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