#4E2E7E#4E2E7E

#4E2E7E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.4% C 0.130 H 298.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4E2E7E
RGBrgb(78, 46, 126)
HSLhsl(264, 47%, 34%)
HSVhsv(264, 63%, 49%)
CMYKcmyk(38.1%, 63.5%, 0%, 50.6%)
CIE-LABlab(26.96, 32.88, -40.18)
CIE-LCHlch(26.96, 51.92, 309.29°)
OKLaboklab(38.44% 0.062 -0.1142)
OKLCHoklch(38.44% 0.13 298.5)
XYZxyz(7.8838, 5.0800, 20.2998)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E7E #5E7E2E
analogous
#2E367E #4E2E7E #762E7E
triadic
#4E2E7E #7E4E2E #2E7E4E
tetradic
#4E2E7E #7E2E36 #5E7E2E #2E7E76
square
#4E2E7E #7E2E36 #5E7E2E #2E7E76
split-complementary
#4E2E7E #7E762E #367E2E
monochromatic
#160D24 #321E51 #4E2E7E #6A3EAB #8961C5

Accessibility & contrast

On white

10.42
#4E2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E7E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E7E#FFFFFF#000000##FFFFFF
##4E2E7E1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#0D3F7C
Tritanopia (blue-blind)
#433F51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2e7e;
/* rgb */ color: rgb(78, 46, 126);
/* oklch */ color: oklch(38.4% 0.130 298.5);
Tailwind
colors: {
  custom: {
    50: '#8368a4',
    500: '#4e2e7e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e7e;
$custom-light: #8368a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e7e",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 264,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38444,
    "c": 0.12998,
    "h": 298.5
  },
  "luminance": 0.0508
}

Semantic roles & 50–950 ramp

primary
#4E2E7E
secondary
#8CAC5C
accent
#D652A1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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