#4E2071#4E2071

#4E2071 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.135 H 306.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4E2071
RGBrgb(78, 32, 113)
HSLhsl(274, 56%, 28%)
HSVhsv(274, 72%, 44%)
CMYKcmyk(31%, 71.7%, 0%, 55.7%)
CIE-LABlab(23.15, 37.15, -38.06)
CIE-LCHlch(23.15, 53.19, 314.30°)
OKLaboklab(35.39% 0.0806 -0.1079)
OKLCHoklch(35.39% 0.135 306.8)
XYZxyz(6.6384, 3.8451, 16.0120)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2071 #437120
analogous
#252071 #4E2071 #71206B
triadic
#4E2071 #714E20 #20714E
tetradic
#4E2071 #712520 #437120 #206B71
square
#4E2071 #712520 #437120 #206B71
split-complementary
#4E2071 #6B7120 #207125
monochromatic
#100718 #2D1241 #4E2071 #6F2EA1 #8F42C9

Accessibility & contrast

On white

11.87
#4E2071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2071
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2071#FFFFFF#000000##FFFFFF
##4E20711.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#09386F
Tritanopia (blue-blind)
#483246
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2071;
/* rgb */ color: rgb(78, 32, 113);
/* oklch */ color: oklch(35.4% 0.135 306.8);
Tailwind
colors: {
  custom: {
    50: '#835f9a',
    500: '#4e2071',
    950: '#000000',
  },
}
SCSS
$custom: #4e2071;
$custom-light: #835f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2071",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 274.074,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35388,
    "c": 0.1347,
    "h": 306.8
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#4E2071
secondary
#70A548
accent
#DF498A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2071

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

Preview Lab → · Contrast checker → · Palette generator →

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