#4E2CAB#4E2CAB

#4E2CAB is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.188 H 287.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4E2CAB
RGBrgb(78, 44, 171)
HSLhsl(256, 59%, 42%)
HSVhsv(256, 74%, 67%)
CMYKcmyk(54.4%, 74.3%, 0%, 32.9%)
CIE-LABlab(30.31, 46.93, -62.38)
CIE-LCHlch(30.31, 78.06, 306.95°)
OKLaboklab(42% 0.0569 -0.1794)
OKLCHoklch(42% 0.188 287.6)
XYZxyz(11.3911, 6.3608, 39.1477)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2CAB #89AB2C
analogous
#2C4AAB #4E2CAB #8E2CAB
triadic
#4E2CAB #AB4E2C #2CAB4E
tetradic
#4E2CAB #AB2C4A #89AB2C #2CAB8E
square
#4E2CAB #AB2C4A #89AB2C #2CAB8E
split-complementary
#4E2CAB #AB8E2C #4AAB2C
monochromatic
#22134A #381F7A #4E2CAB #6A45CF #9176DC

Accessibility & contrast

On white

9.24
#4E2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2CAB
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2CAB#FFFFFF#000000##FFFFFF
##4E2CAB1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#284F69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2cab;
/* rgb */ color: rgb(78, 44, 171);
/* oklch */ color: oklch(42.0% 0.188 287.6);
Tailwind
colors: {
  custom: {
    50: '#8a69c5',
    500: '#4e2cab',
    950: '#000000',
  },
}
SCSS
$custom: #4e2cab;
$custom-light: #8a69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2cab",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 256.063,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42003,
    "c": 0.1882,
    "h": 287.6
  },
  "luminance": 0.06361
}

Semantic roles & 50–950 ramp

primary
#4E2CAB
secondary
#ADC36F
accent
#E246B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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