#4E2D6C#4E2D6C

#4E2D6C is a dark, moderate violet. Relative luminance 0.046; OKLCH L 37.0% C 0.108 H 306.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4E2D6C
RGBrgb(78, 45, 108)
HSLhsl(271, 41%, 30%)
HSVhsv(271, 58%, 42%)
CMYKcmyk(27.8%, 58.3%, 0%, 57.6%)
CIE-LABlab(25.50, 28.55, -31.07)
CIE-LCHlch(25.50, 42.20, 312.58°)
OKLaboklab(36.98% 0.0635 -0.0875)
OKLCHoklch(36.98% 0.108 306)
XYZxyz(6.7865, 4.5792, 14.7108)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D6C #4B6C2D
analogous
#2F2D6C #4E2D6C #6C2D6A
triadic
#4E2D6C #6C4E2D #2D6C4E
tetradic
#4E2D6C #6C2F2D #4B6C2D #2D6A6C
square
#4E2D6C #6C2F2D #4B6C2D #2D6A6C
split-complementary
#4E2D6C #6A6C2D #2D6C2F
monochromatic
#100916 #2F1B41 #4E2D6C #6D3F97 #8C59BA

Accessibility & contrast

On white

10.96
#4E2D6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E2D6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D6C
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D6C#FFFFFF#000000##FFFFFF
##4E2D6C1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6E
Deuteranopia (green-blind)
#223D6A
Tritanopia (blue-blind)
#493948
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2d6c;
/* rgb */ color: rgb(78, 45, 108);
/* oklch */ color: oklch(37.0% 0.108 306.0);
Tailwind
colors: {
  custom: {
    50: '#826796',
    500: '#4e2d6c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d6c;
$custom-light: #826796;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d6c",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 108
  },
  "hsl": {
    "h": 271.429,
    "s": 41.176,
    "l": 30
  },
  "oklch": {
    "l": 0.36979,
    "c": 0.1081,
    "h": 306
  },
  "luminance": 0.04579
}

Semantic roles & 50–950 ramp

primary
#4E2D6C
secondary
#799E57
accent
#D15791
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #4E2D6C

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

Preview Lab → · Contrast checker → · Palette generator →

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