#4E2E9C#4E2E9C

#4E2E9C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.168 H 290.3°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#4E2E9C
RGBrgb(78, 46, 156)
HSLhsl(257, 54%, 40%)
HSVhsv(257, 71%, 61%)
CMYKcmyk(50%, 70.5%, 0%, 38.8%)
CIE-LABlab(29.35, 41.51, -54.88)
CIE-LCHlch(29.35, 68.81, 307.10°)
OKLaboklab(40.91% 0.0583 -0.1574)
OKLCHoklch(40.91% 0.168 290.3)
XYZxyz(10.1179, 5.9736, 32.0659)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E9C #7C9C2E
analogous
#2E459C #4E2E9C #852E9C
triadic
#4E2E9C #9C4E2E #2E9C4E
tetradic
#4E2E9C #9C2E45 #7C9C2E #2E9C85
square
#4E2E9C #9C2E45 #7C9C2E #2E9C85
split-complementary
#4E2E9C #9C852E #459C2E
monochromatic
#1F123D #36206D #4E2E9C #6840C7 #8D70D5

Accessibility & contrast

On white

9.57
#4E2E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E2E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2E9C
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E9C#FFFFFF#000000##FFFFFF
##4E2E9C1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#344A61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2e9c;
/* rgb */ color: rgb(78, 46, 156);
/* oklch */ color: oklch(40.9% 0.168 290.3);
Tailwind
colors: {
  custom: {
    50: '#8769ba',
    500: '#4e2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e9c;
$custom-light: #8769ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e9c",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 257.455,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4091,
    "c": 0.16788,
    "h": 290.3
  },
  "luminance": 0.05974
}

Semantic roles & 50–950 ramp

primary
#4E2E9C
secondary
#A4BC6A
accent
#DE4AB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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