#4E2BA5#4E2BA5

#4E2BA5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.182 H 288.9°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4E2BA5
RGBrgb(78, 43, 165)
HSLhsl(257, 59%, 41%)
HSVhsv(257, 74%, 65%)
CMYKcmyk(52.7%, 73.9%, 0%, 35.3%)
CIE-LABlab(29.57, 45.71, -59.97)
CIE-LCHlch(29.57, 75.40, 307.32°)
OKLaboklab(41.32% 0.0591 -0.1723)
OKLCHoklch(41.32% 0.182 288.9)
XYZxyz(10.7953, 6.0636, 36.1916)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2BA5 #82A52B
analogous
#2B45A5 #4E2BA5 #8B2BA5
triadic
#4E2BA5 #A54E2B #2BA54E
tetradic
#4E2BA5 #A52B45 #82A52B #2BA58B
square
#4E2BA5 #A52B45 #82A52B #2BA58B
split-complementary
#4E2BA5 #A58B2B #45A52B
monochromatic
#201244 #371E74 #4E2BA5 #6840CD #8F71DA

Accessibility & contrast

On white

9.49
#4E2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E2BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2BA5
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2BA5#FFFFFF#000000##FFFFFF
##4E2BA51.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#2D4C65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2ba5;
/* rgb */ color: rgb(78, 43, 165);
/* oklch */ color: oklch(41.3% 0.182 288.9);
Tailwind
colors: {
  custom: {
    50: '#8968c1',
    500: '#4e2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ba5;
$custom-light: #8968c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ba5",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 257.213,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41317,
    "c": 0.18219,
    "h": 288.9
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

primary
#4E2BA5
secondary
#A8C16B
accent
#E246B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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