#4E2571#4E2571

#4E2571 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.127 H 305.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4E2571
RGBrgb(78, 37, 113)
HSLhsl(272, 51%, 29%)
HSVhsv(272, 67%, 44%)
CMYKcmyk(31%, 67.3%, 0%, 55.7%)
CIE-LABlab(24.11, 34.50, -36.51)
CIE-LCHlch(24.11, 50.23, 313.38°)
OKLaboklab(36.08% 0.0744 -0.1034)
OKLCHoklch(36.08% 0.127 305.7)
XYZxyz(6.7834, 4.1351, 16.0604)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2571 #487125
analogous
#282571 #4E2571 #71256E
triadic
#4E2571 #714E25 #25714E
tetradic
#4E2571 #712825 #487125 #256E71
square
#4E2571 #712825 #487125 #256E71
split-complementary
#4E2571 #6E7125 #257128
monochromatic
#100817 #2E1643 #4E2571 #6E349F #8D4CC4

Accessibility & contrast

On white

11.49
#4E2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4E2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2571
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2571#FFFFFF#000000##FFFFFF
##4E25711.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#12396F
Tritanopia (blue-blind)
#483547
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2571;
/* rgb */ color: rgb(78, 37, 113);
/* oklch */ color: oklch(36.1% 0.127 305.7);
Tailwind
colors: {
  custom: {
    50: '#83629a',
    500: '#4e2571',
    950: '#000000',
  },
}
SCSS
$custom: #4e2571;
$custom-light: #83629a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2571",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 272.368,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36078,
    "c": 0.1274,
    "h": 305.7
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#4E2571
secondary
#76A44E
accent
#DA4E8E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2571

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

Preview Lab → · Contrast checker → · Palette generator →

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