#4E2572#4E2572

#4E2572 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.129 H 305.3°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4E2572
RGBrgb(78, 37, 114)
HSLhsl(272, 51%, 30%)
HSVhsv(272, 68%, 45%)
CMYKcmyk(31.6%, 67.5%, 0%, 55.3%)
CIE-LABlab(24.19, 34.76, -37.04)
CIE-LCHlch(24.19, 50.79, 313.18°)
OKLaboklab(36.15% 0.0744 -0.1049)
OKLCHoklch(36.15% 0.129 305.3)
XYZxyz(6.8400, 4.1578, 16.3585)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2572 #497225
analogous
#282572 #4E2572 #722570
triadic
#4E2572 #724E25 #25724E
tetradic
#4E2572 #722825 #497225 #257072
square
#4E2572 #722825 #497225 #257072
split-complementary
#4E2572 #707225 #257228
monochromatic
#100717 #2E1644 #4E2572 #6E34A0 #8D4CC5

Accessibility & contrast

On white

11.47
#4E2572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2572
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2572#FFFFFF#000000##FFFFFF
##4E25721.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#113A70
Tritanopia (blue-blind)
#483548
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2572;
/* rgb */ color: rgb(78, 37, 114);
/* oklch */ color: oklch(36.2% 0.129 305.3);
Tailwind
colors: {
  custom: {
    50: '#83629b',
    500: '#4e2572',
    950: '#000000',
  },
}
SCSS
$custom: #4e2572;
$custom-light: #83629b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2572",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 271.948,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36154,
    "c": 0.12861,
    "h": 305.3
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#4E2572
secondary
#77A54E
accent
#DA4D8F
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2572

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

Preview Lab → · Contrast checker → · Palette generator →

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