#4E2BAA#4E2BAA

#4E2BAA is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.188 H 287.9°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4E2BAA
RGBrgb(78, 43, 170)
HSLhsl(257, 60%, 42%)
HSVhsv(257, 75%, 67%)
CMYKcmyk(54.1%, 74.7%, 0%, 33.3%)
CIE-LABlab(30.03, 47.15, -62.23)
CIE-LCHlch(30.03, 78.07, 307.15°)
OKLaboklab(41.78% 0.0579 -0.1789)
OKLCHoklch(41.78% 0.188 287.9)
XYZxyz(11.2593, 6.2492, 38.6353)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2BAA #87AA2B
analogous
#2B48AA #4E2BAA #8D2BAA
triadic
#4E2BAA #AA4E2B #2BAA4E
tetradic
#4E2BAA #AA2B48 #87AA2B #2BAA8D
square
#4E2BAA #AA2B48 #87AA2B #2BAA8D
split-complementary
#4E2BAA #AA8D2B #48AA2B
monochromatic
#211248 #381F79 #4E2BAA #6A43CF #9074DC

Accessibility & contrast

On white

9.33
#4E2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2BAA
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2BAA#FFFFFF#000000##FFFFFF
##4E2BAA1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#294E68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2baa;
/* rgb */ color: rgb(78, 43, 170);
/* oklch */ color: oklch(41.8% 0.188 287.9);
Tailwind
colors: {
  custom: {
    50: '#8968c4',
    500: '#4e2baa',
    950: '#000000',
  },
}
SCSS
$custom: #4e2baa;
$custom-light: #8968c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2baa",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 256.535,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41782,
    "c": 0.18808,
    "h": 287.9
  },
  "luminance": 0.0625
}

Semantic roles & 50–950 ramp

primary
#4E2BAA
secondary
#ACC36E
accent
#E345B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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