#4E2A7B#4E2A7B

#4E2A7B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.132 H 300.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4E2A7B
RGBrgb(78, 42, 123)
HSLhsl(267, 49%, 32%)
HSVhsv(267, 66%, 48%)
CMYKcmyk(36.6%, 65.9%, 0%, 51.8%)
CIE-LABlab(25.88, 34.37, -40.04)
CIE-LCHlch(25.88, 52.76, 310.64°)
OKLaboklab(37.59% 0.0673 -0.1138)
OKLCHoklch(37.59% 0.132 300.6)
XYZxyz(7.5441, 4.7056, 19.2459)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A7B #577B2A
analogous
#2A2E7B #4E2A7B #772A7B
triadic
#4E2A7B #7B4E2A #2A7B4E
tetradic
#4E2A7B #7B2A2E #577B2A #2A7B77
square
#4E2A7B #7B2A2E #577B2A #2A7B77
split-complementary
#4E2A7B #7B772A #2E7B2A
monochromatic
#140B20 #311A4D #4E2A7B #6B3AA9 #8A59C6

Accessibility & contrast

On white

10.82
#4E2A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A7B
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A7B#FFFFFF#000000##FFFFFF
##4E2A7B1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#093D79
Tritanopia (blue-blind)
#443C4E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2a7b;
/* rgb */ color: rgb(78, 42, 123);
/* oklch */ color: oklch(37.6% 0.132 300.6);
Tailwind
colors: {
  custom: {
    50: '#8366a2',
    500: '#4e2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a7b;
$custom-light: #8366a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a7b",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 266.667,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37588,
    "c": 0.13219,
    "h": 300.6
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

primary
#4E2A7B
secondary
#85AC55
accent
#D94F9C
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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