#4E2174#4E2174

#4E2174 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.137 H 305.3°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4E2174
RGBrgb(78, 33, 116)
HSLhsl(273, 56%, 29%)
HSVhsv(273, 72%, 45%)
CMYKcmyk(32.8%, 71.6%, 0%, 54.5%)
CIE-LABlab(23.57, 37.40, -39.32)
CIE-LCHlch(23.57, 54.27, 313.57°)
OKLaboklab(35.76% 0.079 -0.1116)
OKLCHoklch(35.76% 0.137 305.3)
XYZxyz(6.8374, 3.9684, 16.9254)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2174 #477421
analogous
#252174 #4E2174 #742171
triadic
#4E2174 #744E21 #21744E
tetradic
#4E2174 #742521 #477421 #217174
square
#4E2174 #742521 #477421 #217174
split-complementary
#4E2174 #717421 #217425
monochromatic
#100718 #2E1344 #4E2174 #6E2FA4 #8D45CA

Accessibility & contrast

On white

11.71
#4E2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2174
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2174#FFFFFF#000000##FFFFFF
##4E21741.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#043872
Tritanopia (blue-blind)
#473448
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2174;
/* rgb */ color: rgb(78, 33, 116);
/* oklch */ color: oklch(35.8% 0.137 305.3);
Tailwind
colors: {
  custom: {
    50: '#83609d',
    500: '#4e2174',
    950: '#000000',
  },
}
SCSS
$custom: #4e2174;
$custom-light: #83609d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2174",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 272.53,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35757,
    "c": 0.13676,
    "h": 305.3
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#4E2174
secondary
#74A749
accent
#DF498E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2174

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

Preview Lab → · Contrast checker → · Palette generator →

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