#4E2371#4E2371

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

Color values

HEX#4E2371
RGBrgb(78, 35, 113)
HSLhsl(273, 53%, 29%)
HSVhsv(273, 69%, 44%)
CMYKcmyk(31%, 69%, 0%, 55.7%)
CIE-LABlab(23.72, 35.58, -37.15)
CIE-LCHlch(23.72, 51.44, 313.77°)
OKLaboklab(35.79% 0.077 -0.1053)
OKLCHoklch(35.79% 0.13 306.2)
XYZxyz(6.7229, 4.0141, 16.0402)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2371 #467123
analogous
#272371 #4E2371 #71236D
triadic
#4E2371 #714E23 #23714E
tetradic
#4E2371 #712723 #467123 #236D71
square
#4E2371 #712723 #467123 #236D71
split-complementary
#4E2371 #6D7123 #237127
monochromatic
#100717 #2E1542 #4E2371 #6E31A0 #8E48C6

Accessibility & contrast

On white

11.65
#4E2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2371
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2371#FFFFFF#000000##FFFFFF
##4E23711.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#0F396F
Tritanopia (blue-blind)
#483447
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2371;
/* rgb */ color: rgb(78, 35, 113);
/* oklch */ color: oklch(35.8% 0.130 306.2);
Tailwind
colors: {
  custom: {
    50: '#83619a',
    500: '#4e2371',
    950: '#000000',
  },
}
SCSS
$custom: #4e2371;
$custom-light: #83619a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2371",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 273.077,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35793,
    "c": 0.13039,
    "h": 306.2
  },
  "luminance": 0.04014
}

Semantic roles & 50–950 ramp

primary
#4E2371
secondary
#73A44C
accent
#DC4C8C
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2371

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

Preview Lab → · Contrast checker → · Palette generator →

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