#4E2A6A#4E2A6A

#4E2A6A is a dark, moderate violet. Relative luminance 0.043; OKLCH L 36.3% C 0.111 H 307.8°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#4E2A6A
RGBrgb(78, 42, 106)
HSLhsl(274, 43%, 29%)
HSVhsv(274, 60%, 42%)
CMYKcmyk(26.4%, 60.4%, 0%, 58.4%)
CIE-LABlab(24.69, 29.82, -31.08)
CIE-LCHlch(24.69, 43.07, 313.82°)
OKLaboklab(36.34% 0.0678 -0.0875)
OKLCHoklch(36.34% 0.111 307.8)
XYZxyz(6.5708, 4.3163, 14.1199)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A6A #466A2A
analogous
#2E2A6A #4E2A6A #6A2A66
triadic
#4E2A6A #6A4E2A #2A6A4E
tetradic
#4E2A6A #6A2E2A #466A2A #2A666A
square
#4E2A6A #6A2E2A #466A2A #2A666A
split-complementary
#4E2A6A #666A2A #2A6A2E
monochromatic
#100916 #2E193E #4E2A6A #6E3B96 #8E53BB

Accessibility & contrast

On white

11.27
#4E2A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E2A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A6A
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A6A#FFFFFF#000000##FFFFFF
##4E2A6A1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13396C
Deuteranopia (green-blind)
#213B68
Tritanopia (blue-blind)
#4A3645
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2a6a;
/* rgb */ color: rgb(78, 42, 106);
/* oklch */ color: oklch(36.3% 0.111 307.8);
Tailwind
colors: {
  custom: {
    50: '#826595',
    500: '#4e2a6a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a6a;
$custom-light: #826595;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a6a",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 106
  },
  "hsl": {
    "h": 273.75,
    "s": 43.243,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36343,
    "c": 0.11067,
    "h": 307.8
  },
  "luminance": 0.04316
}

Semantic roles & 50–950 ramp

primary
#4E2A6A
secondary
#739C54
accent
#D3558C
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #4E2A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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