#4E2672#4E2672

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

Color values

HEX#4E2672
RGBrgb(78, 38, 114)
HSLhsl(272, 50%, 30%)
HSVhsv(272, 67%, 45%)
CMYKcmyk(31.6%, 66.7%, 0%, 55.3%)
CIE-LABlab(24.39, 34.20, -36.71)
CIE-LCHlch(24.39, 50.18, 312.98°)
OKLaboklab(36.3% 0.0731 -0.104)
OKLCHoklch(36.3% 0.127 305.1)
XYZxyz(6.8716, 4.2209, 16.3690)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2672 #4A7226
analogous
#282672 #4E2672 #722670
triadic
#4E2672 #724E26 #26724E
tetradic
#4E2672 #722826 #4A7226 #267072
square
#4E2672 #722826 #4A7226 #267072
split-complementary
#4E2672 #707226 #267228
monochromatic
#100817 #2F1744 #4E2672 #6D35A0 #8C4EC4

Accessibility & contrast

On white

11.39
#4E2672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2672
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2672#FFFFFF#000000##FFFFFF
##4E26721.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#133A70
Tritanopia (blue-blind)
#483648
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2672;
/* rgb */ color: rgb(78, 38, 114);
/* oklch */ color: oklch(36.3% 0.127 305.1);
Tailwind
colors: {
  custom: {
    50: '#83639b',
    500: '#4e2672',
    950: '#000000',
  },
}
SCSS
$custom: #4e2672;
$custom-light: #83639b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2672",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 114
  },
  "hsl": {
    "h": 271.579,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.363,
    "c": 0.12709,
    "h": 305.1
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#4E2672
secondary
#78A54F
accent
#DA4E90
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2672

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

Preview Lab → · Contrast checker → · Palette generator →

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