#4E2E7B#4E2E7B

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

Color values

HEX#4E2E7B
RGBrgb(78, 46, 123)
HSLhsl(265, 46%, 33%)
HSVhsv(265, 63%, 48%)
CMYKcmyk(36.6%, 62.6%, 0%, 51.8%)
CIE-LABlab(26.75, 32.04, -38.64)
CIE-LCHlch(26.75, 50.19, 309.66°)
OKLaboklab(38.22% 0.0622 -0.1097)
OKLCHoklch(38.22% 0.126 299.5)
XYZxyz(7.6932, 5.0037, 19.2955)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E7B #5B7B2E
analogous
#2E347B #4E2E7B #742E7B
triadic
#4E2E7B #7B4E2E #2E7B4E
tetradic
#4E2E7B #7B2E34 #5B7B2E #2E7B74
square
#4E2E7B #7B2E34 #5B7B2E #2E7B74
split-complementary
#4E2E7B #7B742E #347B2E
monochromatic
#160D22 #321D4E #4E2E7B #6A3FA8 #8960C3

Accessibility & contrast

On white

10.50
#4E2E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E7B
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E7B#FFFFFF#000000##FFFFFF
##4E2E7B1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#133F79
Tritanopia (blue-blind)
#443E50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2e7b;
/* rgb */ color: rgb(78, 46, 123);
/* oklch */ color: oklch(38.2% 0.126 299.5);
Tailwind
colors: {
  custom: {
    50: '#8368a2',
    500: '#4e2e7b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e7b;
$custom-light: #8368a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e7b",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 264.935,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38218,
    "c": 0.12608,
    "h": 299.5
  },
  "luminance": 0.05004
}

Semantic roles & 50–950 ramp

primary
#4E2E7B
secondary
#89AA5B
accent
#D5539F
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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