#4E2573#4E2573

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

Color values

HEX#4E2573
RGBrgb(78, 37, 115)
HSLhsl(272, 51%, 30%)
HSVhsv(272, 68%, 45%)
CMYKcmyk(32.2%, 67.8%, 0%, 54.9%)
CIE-LABlab(24.26, 35.02, -37.56)
CIE-LCHlch(24.26, 51.35, 313.00°)
OKLaboklab(36.23% 0.0743 -0.1065)
OKLCHoklch(36.23% 0.13 304.9)
XYZxyz(6.8973, 4.1807, 16.6599)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2573 #4A7325
analogous
#272573 #4E2573 #732571
triadic
#4E2573 #734E25 #25734E
tetradic
#4E2573 #732725 #4A7325 #257173
square
#4E2573 #732725 #4A7325 #257173
split-complementary
#4E2573 #717325 #257327
monochromatic
#100717 #2F1645 #4E2573 #6D34A1 #8C4DC6

Accessibility & contrast

On white

11.44
#4E2573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4E2573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2573
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2573#FFFFFF#000000##FFFFFF
##4E25731.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#0F3A71
Tritanopia (blue-blind)
#473648
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2573;
/* rgb */ color: rgb(78, 37, 115);
/* oklch */ color: oklch(36.2% 0.130 304.9);
Tailwind
colors: {
  custom: {
    50: '#83629c',
    500: '#4e2573',
    950: '#000000',
  },
}
SCSS
$custom: #4e2573;
$custom-light: #83629c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2573",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 115
  },
  "hsl": {
    "h": 271.538,
    "s": 51.316,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36231,
    "c": 0.12981,
    "h": 304.9
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#4E2573
secondary
#78A64E
accent
#DB4D90
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2573

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

Preview Lab → · Contrast checker → · Palette generator →

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