#4E2A6E#4E2A6E

#4E2A6E is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.6% C 0.116 H 305.9°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#4E2A6E
RGBrgb(78, 42, 110)
HSLhsl(272, 45%, 30%)
HSVhsv(272, 62%, 43%)
CMYKcmyk(29.1%, 61.8%, 0%, 56.9%)
CIE-LABlab(24.96, 30.86, -33.23)
CIE-LCHlch(24.96, 45.35, 312.89°)
OKLaboklab(36.62% 0.0678 -0.0938)
OKLCHoklch(36.62% 0.116 305.9)
XYZxyz(6.7837, 4.4015, 15.2410)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A6E #4A6E2A
analogous
#2C2A6E #4E2A6E #6E2A6C
triadic
#4E2A6E #6E4E2A #2A6E4E
tetradic
#4E2A6E #6E2C2A #4A6E2A #2A6C6E
square
#4E2A6E #6E2C2A #4A6E2A #2A6C6E
split-complementary
#4E2A6E #6C6E2A #2A6E2C
monochromatic
#100816 #2F1942 #4E2A6E #6D3B9A #8C55BE

Accessibility & contrast

On white

11.17
#4E2A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2A6E
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A6E#FFFFFF#000000##FFFFFF
##4E2A6E1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3A70
Deuteranopia (green-blind)
#1D3B6C
Tritanopia (blue-blind)
#493747
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2a6e;
/* rgb */ color: rgb(78, 42, 110);
/* oklch */ color: oklch(36.6% 0.116 305.9);
Tailwind
colors: {
  custom: {
    50: '#826598',
    500: '#4e2a6e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a6e;
$custom-light: #826598;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a6e",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 110
  },
  "hsl": {
    "h": 271.765,
    "s": 44.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36623,
    "c": 0.11575,
    "h": 305.9
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#4E2A6E
secondary
#78A054
accent
#D45390
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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