#4E2074#4E2074

#4E2074 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.138 H 305.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4E2074
RGBrgb(78, 32, 116)
HSLhsl(273, 57%, 29%)
HSVhsv(273, 72%, 45%)
CMYKcmyk(32.8%, 72.4%, 0%, 54.5%)
CIE-LABlab(23.38, 37.91, -39.61)
CIE-LCHlch(23.38, 54.83, 313.74°)
OKLaboklab(35.63% 0.0802 -0.1125)
OKLCHoklch(35.63% 0.138 305.5)
XYZxyz(6.8101, 3.9137, 16.9163)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2074 #467420
analogous
#242074 #4E2074 #742070
triadic
#4E2074 #744E20 #20744E
tetradic
#4E2074 #742420 #467420 #207074
square
#4E2074 #742420 #467420 #207074
split-complementary
#4E2074 #707420 #207424
monochromatic
#100718 #2E1344 #4E2074 #6E2DA4 #8E43CB

Accessibility & contrast

On white

11.78
#4E2074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E2074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2074
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2074#FFFFFF#000000##FFFFFF
##4E20741.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#023872
Tritanopia (blue-blind)
#473347
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2074;
/* rgb */ color: rgb(78, 32, 116);
/* oklch */ color: oklch(35.6% 0.138 305.5);
Tailwind
colors: {
  custom: {
    50: '#835f9d',
    500: '#4e2074',
    950: '#000000',
  },
}
SCSS
$custom: #4e2074;
$custom-light: #835f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2074",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 116
  },
  "hsl": {
    "h": 272.857,
    "s": 56.757,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35626,
    "c": 0.13814,
    "h": 305.5
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#4E2074
secondary
#73A848
accent
#E0488D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2074

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

Preview Lab → · Contrast checker → · Palette generator →

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