#4E2D7C#4E2D7C

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

Color values

HEX#4E2D7C
RGBrgb(78, 45, 124)
HSLhsl(265, 47%, 33%)
HSVhsv(265, 64%, 49%)
CMYKcmyk(37.1%, 63.7%, 0%, 51.4%)
CIE-LABlab(26.60, 32.91, -39.51)
CIE-LCHlch(26.60, 51.42, 309.79°)
OKLaboklab(38.13% 0.0634 -0.1122)
OKLCHoklch(38.13% 0.129 299.5)
XYZxyz(7.7175, 4.9516, 19.6140)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D7C #5B7C2D
analogous
#2D337C #4E2D7C #752D7C
triadic
#4E2D7C #7C4E2D #2D7C4E
tetradic
#4E2D7C #7C2D33 #5B7C2D #2D7C75
square
#4E2D7C #7C2D33 #5B7C2D #2D7C75
split-complementary
#4E2D7C #7C752D #337C2D
monochromatic
#160C22 #321D4F #4E2D7C #6A3DA9 #895FC5

Accessibility & contrast

On white

10.55
#4E2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D7C
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D7C#FFFFFF#000000##FFFFFF
##4E2D7C1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#0F3E7A
Tritanopia (blue-blind)
#443E50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2d7c;
/* rgb */ color: rgb(78, 45, 124);
/* oklch */ color: oklch(38.1% 0.129 299.5);
Tailwind
colors: {
  custom: {
    50: '#8368a2',
    500: '#4e2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d7c;
$custom-light: #8368a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d7c",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 265.063,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38132,
    "c": 0.12892,
    "h": 299.5
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#4E2D7C
secondary
#89AB5A
accent
#D6519F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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