#4E2E8B#4E2E8B

#4E2E8B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.147 H 294.5°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4E2E8B
RGBrgb(78, 46, 139)
HSLhsl(261, 50%, 36%)
HSVhsv(261, 67%, 55%)
CMYKcmyk(43.9%, 66.9%, 0%, 45.5%)
CIE-LABlab(27.95, 36.58, -46.71)
CIE-LCHlch(27.95, 59.33, 308.06°)
OKLaboklab(39.47% 0.0609 -0.1334)
OKLCHoklch(39.47% 0.147 294.5)
XYZxyz(8.7778, 5.4376, 25.0082)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E8B #6B8B2E
analogous
#2E3D8B #4E2E8B #7D2E8B
triadic
#4E2E8B #8B4E2E #2E8B4E
tetradic
#4E2E8B #8B2E3D #6B8B2E #2E8B7D
square
#4E2E8B #8B2E3D #6B8B2E #2E8B7D
split-complementary
#4E2E8B #8B7D2E #3D8B2E
monochromatic
#1A102F #341F5D #4E2E8B #683DB9 #8A67CD

Accessibility & contrast

On white

10.06
#4E2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4E2E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E8B
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E8B#FFFFFF#000000##FFFFFF
##4E2E8B1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#3D4458
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2e8b;
/* rgb */ color: rgb(78, 46, 139);
/* oklch */ color: oklch(39.5% 0.147 294.5);
Tailwind
colors: {
  custom: {
    50: '#8569ae',
    500: '#4e2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e8b;
$custom-light: #8569ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e8b",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 260.645,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3947,
    "c": 0.14666,
    "h": 294.5
  },
  "luminance": 0.05438
}

Semantic roles & 50–950 ramp

primary
#4E2E8B
secondary
#97B361
accent
#DA4EAA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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