#4E2E7A#4E2E7A

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

Color values

HEX#4E2E7A
RGBrgb(78, 46, 122)
HSLhsl(265, 45%, 33%)
HSVhsv(265, 62%, 48%)
CMYKcmyk(36.1%, 62.3%, 0%, 52.2%)
CIE-LABlab(26.67, 31.76, -38.12)
CIE-LCHlch(26.67, 49.62, 309.80°)
OKLaboklab(38.14% 0.0622 -0.1082)
OKLCHoklch(38.14% 0.125 299.9)
XYZxyz(7.6309, 4.9788, 18.9676)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E7A #5A7A2E
analogous
#2E347A #4E2E7A #742E7A
triadic
#4E2E7A #7A4E2E #2E7A4E
tetradic
#4E2E7A #7A2E34 #5A7A2E #2E7A74
square
#4E2E7A #7A2E34 #5A7A2E #2E7A74
split-complementary
#4E2E7A #7A742E #347A2E
monochromatic
#150C21 #321D4E #4E2E7A #6A3FA6 #8960C3

Accessibility & contrast

On white

10.52
#4E2E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2E7A
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E7A#FFFFFF#000000##FFFFFF
##4E2E7A1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023F7C
Deuteranopia (green-blind)
#143F78
Tritanopia (blue-blind)
#453E4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2e7a;
/* rgb */ color: rgb(78, 46, 122);
/* oklch */ color: oklch(38.1% 0.125 299.9);
Tailwind
colors: {
  custom: {
    50: '#8368a1',
    500: '#4e2e7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e7a;
$custom-light: #8368a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e7a",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 265.263,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38143,
    "c": 0.12477,
    "h": 299.9
  },
  "luminance": 0.04979
}

Semantic roles & 50–950 ramp

primary
#4E2E7A
secondary
#88AA5A
accent
#D5539E
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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