#4E2BA6#4E2BA6

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

Color values

HEX#4E2BA6
RGBrgb(78, 43, 166)
HSLhsl(257, 59%, 41%)
HSVhsv(257, 74%, 65%)
CMYKcmyk(53%, 74.1%, 0%, 34.9%)
CIE-LABlab(29.66, 46.00, -60.42)
CIE-LCHlch(29.66, 75.94, 307.28°)
OKLaboklab(41.41% 0.0589 -0.1737)
OKLCHoklch(41.41% 0.183 288.7)
XYZxyz(10.8867, 6.1001, 36.6728)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2BA6 #83A62B
analogous
#2B45A6 #4E2BA6 #8B2BA6
triadic
#4E2BA6 #A64E2B #2BA64E
tetradic
#4E2BA6 #A62B45 #83A62B #2BA68B
square
#4E2BA6 #A62B45 #83A62B #2BA68B
split-complementary
#4E2BA6 #A68B2B #45A62B
monochromatic
#201245 #371E75 #4E2BA6 #6941CE #8F71DA

Accessibility & contrast

On white

9.46
#4E2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2BA6
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2BA6#FFFFFF#000000##FFFFFF
##4E2BA61.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#2C4C66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2ba6;
/* rgb */ color: rgb(78, 43, 166);
/* oklch */ color: oklch(41.4% 0.183 288.7);
Tailwind
colors: {
  custom: {
    50: '#8968c1',
    500: '#4e2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ba6;
$custom-light: #8968c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ba6",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 257.073,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41409,
    "c": 0.18337,
    "h": 288.7
  },
  "luminance": 0.06101
}

Semantic roles & 50–950 ramp

primary
#4E2BA6
secondary
#A9C16B
accent
#E246B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4E2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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