#4E2FAA#4E2FAA

#4E2FAA is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.184 H 287.3°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4E2FAA
RGBrgb(78, 47, 170)
HSLhsl(255, 57%, 43%)
HSVhsv(255, 72%, 67%)
CMYKcmyk(54.1%, 72.4%, 0%, 33.3%)
CIE-LABlab(30.77, 45.07, -61.02)
CIE-LCHlch(30.77, 75.86, 306.45°)
OKLaboklab(42.3% 0.0546 -0.1754)
OKLCHoklch(42.3% 0.184 287.3)
XYZxyz(11.4119, 6.5544, 38.6862)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FAA #8BAA2F
analogous
#2F4DAA #4E2FAA #8C2FAA
triadic
#4E2FAA #AA4E2F #2FAA4E
tetradic
#4E2FAA #AA2F4D #8BAA2F #2FAA8C
square
#4E2FAA #AA2F4D #8BAA2F #2FAA8C
split-complementary
#4E2FAA #AA8C2F #4DAA2F
monochromatic
#22144A #38227A #4E2FAA #6B49CD #9279DA

Accessibility & contrast

On white

9.09
#4E2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4E2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FAA
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FAA#FFFFFF#000000##FFFFFF
##4E2FAA1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#285069
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2faa;
/* rgb */ color: rgb(78, 47, 170);
/* oklch */ color: oklch(42.3% 0.184 287.3);
Tailwind
colors: {
  custom: {
    50: '#896ac4',
    500: '#4e2faa',
    950: '#000000',
  },
}
SCSS
$custom: #4e2faa;
$custom-light: #896ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2faa",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 255.122,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42304,
    "c": 0.18372,
    "h": 287.3
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#4E2FAA
secondary
#AEC272
accent
#E048BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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