#4E2972#4E2972

#4E2972 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.122 H 304.4°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#4E2972
RGBrgb(78, 41, 114)
HSLhsl(270, 47%, 30%)
HSVhsv(270, 64%, 45%)
CMYKcmyk(31.6%, 64%, 0%, 55.3%)
CIE-LABlab(25.02, 32.51, -35.70)
CIE-LCHlch(25.02, 48.28, 312.32°)
OKLaboklab(36.75% 0.0691 -0.101)
OKLCHoklch(36.75% 0.122 304.4)
XYZxyz(6.9714, 4.4205, 16.4023)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2972 #4D7229
analogous
#292972 #4E2972 #722971
triadic
#4E2972 #724E29 #29724E
tetradic
#4E2972 #722929 #4D7229 #297172
square
#4E2972 #722929 #4D7229 #297172
split-complementary
#4E2972 #717229 #297229
monochromatic
#100918 #2F1945 #4E2972 #6D399F #8B54C1

Accessibility & contrast

On white

11.15
#4E2972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E2972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2972
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2972#FFFFFF#000000##FFFFFF
##4E29721.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023A74
Deuteranopia (green-blind)
#173B70
Tritanopia (blue-blind)
#473849
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2972;
/* rgb */ color: rgb(78, 41, 114);
/* oklch */ color: oklch(36.8% 0.122 304.4);
Tailwind
colors: {
  custom: {
    50: '#82659b',
    500: '#4e2972',
    950: '#000000',
  },
}
SCSS
$custom: #4e2972;
$custom-light: #82659b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2972",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 270.411,
    "s": 47.097,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36755,
    "c": 0.12242,
    "h": 304.4
  },
  "luminance": 0.0442
}

Semantic roles & 50–950 ramp

primary
#4E2972
secondary
#7BA453
accent
#D75193
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2972

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

Preview Lab → · Contrast checker → · Palette generator →

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