#4E2BAB#4E2BAB

#4E2BAB is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.189 H 287.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4E2BAB
RGBrgb(78, 43, 171)
HSLhsl(256, 60%, 42%)
HSVhsv(256, 75%, 67%)
CMYKcmyk(54.4%, 74.9%, 0%, 32.9%)
CIE-LABlab(30.13, 47.43, -62.67)
CIE-LCHlch(30.13, 78.60, 307.12°)
OKLaboklab(41.88% 0.0577 -0.1803)
OKLCHoklch(41.88% 0.189 287.7)
XYZxyz(11.3543, 6.2872, 39.1354)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2BAB #88AB2B
analogous
#2B48AB #4E2BAB #8E2BAB
triadic
#4E2BAB #AB4E2B #2BAB4E
tetradic
#4E2BAB #AB2B48 #88AB2B #2BAB8E
square
#4E2BAB #AB2B48 #88AB2B #2BAB8E
split-complementary
#4E2BAB #AB8E2B #48AB2B
monochromatic
#211249 #381F7A #4E2BAB #6A43D0 #9174DC

Accessibility & contrast

On white

9.30
#4E2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2BAB
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2BAB#FFFFFF#000000##FFFFFF
##4E2BAB1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#284E69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2bab;
/* rgb */ color: rgb(78, 43, 171);
/* oklch */ color: oklch(41.9% 0.189 287.7);
Tailwind
colors: {
  custom: {
    50: '#8a68c5',
    500: '#4e2bab',
    950: '#000000',
  },
}
SCSS
$custom: #4e2bab;
$custom-light: #8a68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2bab",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 256.406,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41876,
    "c": 0.18926,
    "h": 287.7
  },
  "luminance": 0.06288
}

Semantic roles & 50–950 ramp

primary
#4E2BAB
secondary
#ACC46E
accent
#E345B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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