#4E2B7D#4E2B7D

#4E2B7D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.133 H 299.6°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4E2B7D
RGBrgb(78, 43, 125)
HSLhsl(266, 49%, 33%)
HSVhsv(266, 66%, 49%)
CMYKcmyk(37.6%, 65.6%, 0%, 51%)
CIE-LABlab(26.24, 34.34, -40.72)
CIE-LCHlch(26.24, 53.27, 310.15°)
OKLaboklab(37.9% 0.0659 -0.1158)
OKLCHoklch(37.9% 0.133 299.6)
XYZxyz(7.7065, 4.8281, 19.9240)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B7D #5A7D2B
analogous
#2B317D #4E2B7D #772B7D
triadic
#4E2B7D #7D4E2B #2B7D4E
tetradic
#4E2B7D #7D2B31 #5A7D2B #2B7D77
square
#4E2B7D #7D2B31 #5A7D2B #2B7D77
split-complementary
#4E2B7D #7D772B #317D2B
monochromatic
#150C22 #321B4F #4E2B7D #6A3BAB #895CC7

Accessibility & contrast

On white

10.68
#4E2B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E2B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B7D
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B7D#FFFFFF#000000##FFFFFF
##4E2B7D1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#073D7B
Tritanopia (blue-blind)
#443D50
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2b7d;
/* rgb */ color: rgb(78, 43, 125);
/* oklch */ color: oklch(37.9% 0.133 299.6);
Tailwind
colors: {
  custom: {
    50: '#8366a3',
    500: '#4e2b7d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b7d;
$custom-light: #8366a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b7d",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 265.61,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37896,
    "c": 0.13322,
    "h": 299.6
  },
  "luminance": 0.04828
}

Semantic roles & 50–950 ramp

primary
#4E2B7D
secondary
#88AD57
accent
#D84F9E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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