#4E2072#4E2072

#4E2072 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.136 H 306.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4E2072
RGBrgb(78, 32, 114)
HSLhsl(274, 56%, 29%)
HSVhsv(274, 72%, 45%)
CMYKcmyk(31.6%, 71.9%, 0%, 55.3%)
CIE-LABlab(23.23, 37.40, -38.58)
CIE-LCHlch(23.23, 53.74, 314.11°)
OKLaboklab(35.47% 0.0805 -0.1094)
OKLCHoklch(35.47% 0.136 306.3)
XYZxyz(6.6950, 3.8677, 16.3102)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2072 #447220
analogous
#252072 #4E2072 #72206D
triadic
#4E2072 #724E20 #20724E
tetradic
#4E2072 #722520 #447220 #206D72
square
#4E2072 #722520 #447220 #206D72
split-complementary
#4E2072 #6D7220 #207225
monochromatic
#100718 #2D1342 #4E2072 #6F2DA2 #8E42CA

Accessibility & contrast

On white

11.84
#4E2072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E2072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2072
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2072#FFFFFF#000000##FFFFFF
##4E20721.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#073870
Tritanopia (blue-blind)
#483246
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2072;
/* rgb */ color: rgb(78, 32, 114);
/* oklch */ color: oklch(35.5% 0.136 306.3);
Tailwind
colors: {
  custom: {
    50: '#835f9b',
    500: '#4e2072',
    950: '#000000',
  },
}
SCSS
$custom: #4e2072;
$custom-light: #835f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2072",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 273.659,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35467,
    "c": 0.13585,
    "h": 306.3
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#4E2072
secondary
#71A648
accent
#DF488B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2072

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

Preview Lab → · Contrast checker → · Palette generator →

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