#4E2BA8#4E2BA8

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

Color values

HEX#4E2BA8
RGBrgb(78, 43, 168)
HSLhsl(257, 59%, 41%)
HSVhsv(257, 74%, 66%)
CMYKcmyk(53.6%, 74.4%, 0%, 34.1%)
CIE-LABlab(29.85, 46.57, -61.33)
CIE-LCHlch(29.85, 77.00, 307.21°)
OKLaboklab(41.6% 0.0584 -0.1763)
OKLCHoklch(41.6% 0.186 288.3)
XYZxyz(11.0716, 6.1741, 37.6465)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2BA8 #85A82B
analogous
#2B47A8 #4E2BA8 #8D2BA8
triadic
#4E2BA8 #A84E2B #2BA84E
tetradic
#4E2BA8 #A82B47 #85A82B #2BA88D
square
#4E2BA8 #A82B47 #85A82B #2BA88D
split-complementary
#4E2BA8 #A88D2B #47A82B
monochromatic
#211247 #371F77 #4E2BA8 #6942CF #9072DB

Accessibility & contrast

On white

9.40
#4E2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2BA8
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2BA8#FFFFFF#000000##FFFFFF
##4E2BA81.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2ba8;
/* rgb */ color: rgb(78, 43, 168);
/* oklch */ color: oklch(41.6% 0.186 288.3);
Tailwind
colors: {
  custom: {
    50: '#8968c3',
    500: '#4e2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ba8;
$custom-light: #8968c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ba8",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 256.8,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41595,
    "c": 0.18573,
    "h": 288.3
  },
  "luminance": 0.06175
}

Semantic roles & 50–950 ramp

primary
#4E2BA8
secondary
#AAC26C
accent
#E245B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4E2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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