#4E2E8C#4E2E8C

#4E2E8C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.148 H 294.3°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#4E2E8C
RGBrgb(78, 46, 140)
HSLhsl(260, 51%, 36%)
HSVhsv(260, 67%, 55%)
CMYKcmyk(44.3%, 67.1%, 0%, 45.1%)
CIE-LABlab(28.03, 36.87, -47.20)
CIE-LCHlch(28.03, 59.90, 307.99°)
OKLaboklab(39.55% 0.0608 -0.1349)
OKLCHoklch(39.55% 0.148 294.3)
XYZxyz(8.8512, 5.4669, 25.3947)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E8C #6C8C2E
analogous
#2E3D8C #4E2E8C #7D2E8C
triadic
#4E2E8C #8C4E2E #2E8C4E
tetradic
#4E2E8C #8C2E3D #6C8C2E #2E8C7D
square
#4E2E8C #8C2E3D #6C8C2E #2E8C7D
split-complementary
#4E2E8C #8C7D2E #3D8C2E
monochromatic
#1B1030 #341F5E #4E2E8C #683DBA #8A67CD

Accessibility & contrast

On white

10.03
#4E2E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2E8C
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E8C#FFFFFF#000000##FFFFFF
##4E2E8C1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#3D4459
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2e8c;
/* rgb */ color: rgb(78, 46, 140);
/* oklch */ color: oklch(39.6% 0.148 294.3);
Tailwind
colors: {
  custom: {
    50: '#8569ae',
    500: '#4e2e8c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e8c;
$custom-light: #8569ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e8c",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 140
  },
  "hsl": {
    "h": 260.426,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39551,
    "c": 0.14793,
    "h": 294.3
  },
  "luminance": 0.05467
}

Semantic roles & 50–950 ramp

primary
#4E2E8C
secondary
#98B462
accent
#DA4EAA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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