#4E2CAC#4E2CAC

#4E2CAC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.189 H 287.4°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4E2CAC
RGBrgb(78, 44, 172)
HSLhsl(256, 59%, 42%)
HSVhsv(256, 74%, 67%)
CMYKcmyk(54.7%, 74.4%, 0%, 32.5%)
CIE-LABlab(30.40, 47.22, -62.83)
CIE-LCHlch(30.40, 78.59, 306.93°)
OKLaboklab(42.1% 0.0566 -0.1807)
OKLCHoklch(42.1% 0.189 287.4)
XYZxyz(11.4868, 6.3990, 39.6516)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2CAC #8AAC2C
analogous
#2C4AAC #4E2CAC #8E2CAC
triadic
#4E2CAC #AC4E2C #2CAC4E
tetradic
#4E2CAC #AC2C4A #8AAC2C #2CAC8E
square
#4E2CAC #AC2C4A #8AAC2C #2CAC8E
split-complementary
#4E2CAC #AC8E2C #4AAC2C
monochromatic
#22134B #38207B #4E2CAC #6A46D0 #9176DC

Accessibility & contrast

On white

9.21
#4E2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E2CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2CAC
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2CAC#FFFFFF#000000##FFFFFF
##4E2CAC1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#274F6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2cac;
/* rgb */ color: rgb(78, 44, 172);
/* oklch */ color: oklch(42.1% 0.189 287.4);
Tailwind
colors: {
  custom: {
    50: '#8a69c6',
    500: '#4e2cac',
    950: '#000000',
  },
}
SCSS
$custom: #4e2cac;
$custom-light: #8a69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2cac",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 255.938,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42096,
    "c": 0.18937,
    "h": 287.4
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#4E2CAC
secondary
#AEC470
accent
#E245B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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