#4E2574#4E2574

#4E2574 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.131 H 304.5°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#4E2574
RGBrgb(78, 37, 116)
HSLhsl(271, 52%, 30%)
HSVhsv(271, 68%, 45%)
CMYKcmyk(32.8%, 68.1%, 0%, 54.5%)
CIE-LABlab(24.33, 35.28, -38.08)
CIE-LCHlch(24.33, 51.91, 312.82°)
OKLaboklab(36.31% 0.0742 -0.108)
OKLCHoklch(36.31% 0.131 304.5)
XYZxyz(6.9551, 4.2038, 16.9646)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2574 #4B7425
analogous
#262574 #4E2574 #742573
triadic
#4E2574 #744E25 #25744E
tetradic
#4E2574 #742625 #4B7425 #257374
square
#4E2574 #742625 #4B7425 #257374
split-complementary
#4E2574 #737425 #257426
monochromatic
#100717 #2F1646 #4E2574 #6D34A2 #8C4DC6

Accessibility & contrast

On white

11.41
#4E2574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2574
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2574#FFFFFF#000000##FFFFFF
##4E25741.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#0D3A72
Tritanopia (blue-blind)
#473649
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2574;
/* rgb */ color: rgb(78, 37, 116);
/* oklch */ color: oklch(36.3% 0.131 304.5);
Tailwind
colors: {
  custom: {
    50: '#83629d',
    500: '#4e2574',
    950: '#000000',
  },
}
SCSS
$custom: #4e2574;
$custom-light: #83629d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2574",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 116
  },
  "hsl": {
    "h": 271.139,
    "s": 51.634,
    "l": 30
  },
  "oklch": {
    "l": 0.36308,
    "c": 0.13102,
    "h": 304.5
  },
  "luminance": 0.04204
}

Semantic roles & 50–950 ramp

primary
#4E2574
secondary
#79A74E
accent
#DB4D91
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2574

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

Preview Lab → · Contrast checker → · Palette generator →

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