#4E2CA7#4E2CA7

#4E2CA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.183 H 288.4°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4E2CA7
RGBrgb(78, 44, 167)
HSLhsl(257, 58%, 41%)
HSVhsv(257, 74%, 65%)
CMYKcmyk(53.3%, 73.7%, 0%, 34.5%)
CIE-LABlab(29.94, 45.77, -60.58)
CIE-LCHlch(29.94, 75.92, 307.07°)
OKLaboklab(41.63% 0.0578 -0.1741)
OKLCHoklch(41.63% 0.183 288.4)
XYZxyz(11.0156, 6.2106, 37.1701)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2CA7 #85A72C
analogous
#2C48A7 #4E2CA7 #8C2CA7
triadic
#4E2CA7 #A74E2C #2CA74E
tetradic
#4E2CA7 #A72C48 #85A72C #2CA78C
square
#4E2CA7 #A72C48 #85A72C #2CA78C
split-complementary
#4E2CA7 #A78C2C #48A72C
monochromatic
#211246 #371F77 #4E2CA7 #6943CD #9073DA

Accessibility & contrast

On white

9.37
#4E2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E2CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2CA7
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2CA7#FFFFFF#000000##FFFFFF
##4E2CA71.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#2B4D67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2ca7;
/* rgb */ color: rgb(78, 44, 167);
/* oklch */ color: oklch(41.6% 0.183 288.4);
Tailwind
colors: {
  custom: {
    50: '#8969c2',
    500: '#4e2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ca7;
$custom-light: #8969c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ca7",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 256.585,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41631,
    "c": 0.18347,
    "h": 288.4
  },
  "luminance": 0.06211
}

Semantic roles & 50–950 ramp

primary
#4E2CA7
secondary
#AAC26D
accent
#E246B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4E2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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