#4E2A6F#4E2A6F

#4E2A6F is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.7% C 0.117 H 305.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#4E2A6F
RGBrgb(78, 42, 111)
HSLhsl(271, 45%, 30%)
HSVhsv(271, 62%, 44%)
CMYKcmyk(29.7%, 62.2%, 0%, 56.5%)
CIE-LABlab(25.02, 31.13, -33.76)
CIE-LCHlch(25.02, 45.92, 312.68°)
OKLaboklab(36.69% 0.0678 -0.0953)
OKLCHoklch(36.69% 0.117 305.4)
XYZxyz(6.8385, 4.4234, 15.5294)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A6F #4B6F2A
analogous
#2B2A6F #4E2A6F #6F2A6E
triadic
#4E2A6F #6F4E2A #2A6F4E
tetradic
#4E2A6F #6F2B2A #4B6F2A #2A6E6F
square
#4E2A6F #6F2B2A #4B6F2A #2A6E6F
split-complementary
#4E2A6F #6E6F2A #2A6F2B
monochromatic
#100816 #2F1943 #4E2A6F #6D3B9B #8C55BF

Accessibility & contrast

On white

11.14
#4E2A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E2A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A6F
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A6F#FFFFFF#000000##FFFFFF
##4E2A6F1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3A71
Deuteranopia (green-blind)
#1C3B6D
Tritanopia (blue-blind)
#483848
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2a6f;
/* rgb */ color: rgb(78, 42, 111);
/* oklch */ color: oklch(36.7% 0.117 305.4);
Tailwind
colors: {
  custom: {
    50: '#826599',
    500: '#4e2a6f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a6f;
$custom-light: #826599;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a6f",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 111
  },
  "hsl": {
    "h": 271.304,
    "s": 45.098,
    "l": 30
  },
  "oklch": {
    "l": 0.36694,
    "c": 0.11702,
    "h": 305.4
  },
  "luminance": 0.04423
}

Semantic roles & 50–950 ramp

primary
#4E2A6F
secondary
#79A154
accent
#D55391
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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