#4E2A7F#4E2A7F

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

Color values

HEX#4E2A7F
RGBrgb(78, 42, 127)
HSLhsl(265, 50%, 33%)
HSVhsv(265, 67%, 50%)
CMYKcmyk(38.6%, 66.9%, 0%, 50.2%)
CIE-LABlab(26.18, 35.47, -42.07)
CIE-LCHlch(26.18, 55.03, 310.13°)
OKLaboklab(37.9% 0.0669 -0.1198)
OKLCHoklch(37.9% 0.137 299.2)
XYZxyz(7.7997, 4.8079, 20.5916)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A7F #5B7F2A
analogous
#2A307F #4E2A7F #782A7F
triadic
#4E2A7F #7F4E2A #2A7F4E
tetradic
#4E2A7F #7F2A30 #5B7F2A #2A7F78
square
#4E2A7F #7F2A30 #5B7F2A #2A7F78
split-complementary
#4E2A7F #7F782A #307F2A
monochromatic
#160C23 #321B51 #4E2A7F #6A39AD #895BC9

Accessibility & contrast

On white

10.71
#4E2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E2A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A7F
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A7F#FFFFFF#000000##FFFFFF
##4E2A7F1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#433D50
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2a7f;
/* rgb */ color: rgb(78, 42, 127);
/* oklch */ color: oklch(37.9% 0.137 299.2);
Tailwind
colors: {
  custom: {
    50: '#8466a5',
    500: '#4e2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a7f;
$custom-light: #8466a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a7f",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 265.412,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37901,
    "c": 0.13721,
    "h": 299.2
  },
  "luminance": 0.04808
}

Semantic roles & 50–950 ramp

primary
#4E2A7F
secondary
#89AE57
accent
#DA4E9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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