#4E2F76#4E2F76

#4E2F76 is a dark, moderate violet. Relative luminance 0.050; OKLCH L 38.0% C 0.118 H 301.1°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4E2F76
RGBrgb(78, 47, 118)
HSLhsl(266, 43%, 32%)
HSVhsv(266, 60%, 46%)
CMYKcmyk(33.9%, 60.2%, 0%, 53.7%)
CIE-LABlab(26.62, 30.05, -35.67)
CIE-LCHlch(26.62, 46.64, 310.11°)
OKLaboklab(38.02% 0.0609 -0.101)
OKLCHoklch(38.02% 0.118 301.1)
XYZxyz(7.4276, 4.9607, 17.7022)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F76 #57762F
analogous
#2F3476 #4E2F76 #712F76
triadic
#4E2F76 #764E2F #2F764E
tetradic
#4E2F76 #762F34 #57762F #2F7671
square
#4E2F76 #762F34 #57762F #2F7671
split-complementary
#4E2F76 #76712F #34762F
monochromatic
#140C1E #311E4A #4E2F76 #6B40A2 #8A60C0

Accessibility & contrast

On white

10.54
#4E2F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F76
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F76#FFFFFF#000000##FFFFFF
##4E2F761.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3F78
Deuteranopia (green-blind)
#1B3F74
Tritanopia (blue-blind)
#463D4D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2f76;
/* rgb */ color: rgb(78, 47, 118);
/* oklch */ color: oklch(38.0% 0.118 301.1);
Tailwind
colors: {
  custom: {
    50: '#82699e',
    500: '#4e2f76',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f76;
$custom-light: #82699e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f76",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 266.197,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38016,
    "c": 0.11792,
    "h": 301.1
  },
  "luminance": 0.04961
}

Semantic roles & 50–950 ramp

primary
#4E2F76
secondary
#85A75A
accent
#D3559C
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2F76

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

Preview Lab → · Contrast checker → · Palette generator →

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