#4E2E79#4E2E79

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

Color values

HEX#4E2E79
RGBrgb(78, 46, 121)
HSLhsl(266, 45%, 33%)
HSVhsv(266, 62%, 47%)
CMYKcmyk(35.5%, 62%, 0%, 52.5%)
CIE-LABlab(26.60, 31.48, -37.60)
CIE-LCHlch(26.60, 49.04, 309.94°)
OKLaboklab(38.07% 0.0622 -0.1066)
OKLCHoklch(38.07% 0.123 300.3)
XYZxyz(7.5692, 4.9541, 18.6429)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E79 #59792E
analogous
#2E3379 #4E2E79 #732E79
triadic
#4E2E79 #794E2E #2E794E
tetradic
#4E2E79 #792E33 #59792E #2E7973
square
#4E2E79 #792E33 #59792E #2E7973
split-complementary
#4E2E79 #79732E #33792E
monochromatic
#150C20 #311D4D #4E2E79 #6B3FA5 #895FC2

Accessibility & contrast

On white

10.55
#4E2E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2E79
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E79#FFFFFF#000000##FFFFFF
##4E2E791.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043F7B
Deuteranopia (green-blind)
#163E77
Tritanopia (blue-blind)
#453E4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2e79;
/* rgb */ color: rgb(78, 46, 121);
/* oklch */ color: oklch(38.1% 0.123 300.3);
Tailwind
colors: {
  custom: {
    50: '#8368a0',
    500: '#4e2e79',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e79;
$custom-light: #8368a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e79",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 265.6,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38069,
    "c": 0.12347,
    "h": 300.3
  },
  "luminance": 0.04954
}

Semantic roles & 50–950 ramp

primary
#4E2E79
secondary
#87A95A
accent
#D5539D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E2E79

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

Preview Lab → · Contrast checker → · Palette generator →

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