#4E2CA5#4E2CA5

#4E2CA5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.181 H 288.8°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4E2CA5
RGBrgb(78, 44, 165)
HSLhsl(257, 58%, 41%)
HSVhsv(257, 73%, 65%)
CMYKcmyk(52.7%, 73.3%, 0%, 35.3%)
CIE-LABlab(29.76, 45.19, -59.67)
CIE-LCHlch(29.76, 74.85, 307.14°)
OKLaboklab(41.45% 0.0583 -0.1714)
OKLCHoklch(41.45% 0.181 288.8)
XYZxyz(10.8321, 6.1372, 36.2038)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2CA5 #83A52C
analogous
#2C46A5 #4E2CA5 #8A2CA5
triadic
#4E2CA5 #A54E2C #2CA54E
tetradic
#4E2CA5 #A52C46 #83A52C #2CA58A
square
#4E2CA5 #A52C46 #83A52C #2CA58A
split-complementary
#4E2CA5 #A58A2C #46A52C
monochromatic
#201244 #371F75 #4E2CA5 #6942CD #8F72D9

Accessibility & contrast

On white

9.43
#4E2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E2CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2CA5
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2CA5#FFFFFF#000000##FFFFFF
##4E2CA51.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#2D4C66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2ca5;
/* rgb */ color: rgb(78, 44, 165);
/* oklch */ color: oklch(41.4% 0.181 288.8);
Tailwind
colors: {
  custom: {
    50: '#8968c1',
    500: '#4e2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ca5;
$custom-light: #8968c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ca5",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 256.86,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41447,
    "c": 0.18108,
    "h": 288.8
  },
  "luminance": 0.06138
}

Semantic roles & 50–950 ramp

primary
#4E2CA5
secondary
#A9C16C
accent
#E147B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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