#4E2B8F#4E2B8F

#4E2B8F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.156 H 294.1°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4E2B8F
RGBrgb(78, 43, 143)
HSLhsl(261, 54%, 36%)
HSVhsv(261, 70%, 56%)
CMYKcmyk(45.5%, 69.9%, 0%, 43.9%)
CIE-LABlab(27.66, 39.41, -49.66)
CIE-LCHlch(27.66, 63.40, 308.43°)
OKLaboklab(39.36% 0.0636 -0.1421)
OKLCHoklch(39.36% 0.156 294.1)
XYZxyz(8.9623, 5.3304, 26.5379)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B8F #6C8F2B
analogous
#2B3A8F #4E2B8F #802B8F
triadic
#4E2B8F #8F4E2B #2B8F4E
tetradic
#4E2B8F #8F2B3A #6C8F2B #2B8F80
square
#4E2B8F #8F2B3A #6C8F2B #2B8F80
split-complementary
#4E2B8F #8F802B #3A8F2B
monochromatic
#1B0F31 #341D60 #4E2B8F #6839BE #8A64D0

Accessibility & contrast

On white

10.16
#4E2B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E2B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B8F
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B8F#FFFFFF#000000##FFFFFF
##4E2B8F1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#3C4459
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2b8f;
/* rgb */ color: rgb(78, 43, 143);
/* oklch */ color: oklch(39.4% 0.156 294.1);
Tailwind
colors: {
  custom: {
    50: '#8667b1',
    500: '#4e2b8f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b8f;
$custom-light: #8667b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b8f",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 261,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39362,
    "c": 0.15567,
    "h": 294.1
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#4E2B8F
secondary
#98B75F
accent
#DD4BAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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