#4E2471#4E2471

#4E2471 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.129 H 306.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4E2471
RGBrgb(78, 36, 113)
HSLhsl(273, 52%, 29%)
HSVhsv(273, 68%, 44%)
CMYKcmyk(31%, 68.1%, 0%, 55.7%)
CIE-LABlab(23.91, 35.04, -36.83)
CIE-LCHlch(23.91, 50.84, 313.57°)
OKLaboklab(35.93% 0.0757 -0.1043)
OKLCHoklch(35.93% 0.129 306)
XYZxyz(6.7528, 4.0738, 16.0502)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2471 #477124
analogous
#272471 #4E2471 #71246E
triadic
#4E2471 #714E24 #24714E
tetradic
#4E2471 #712724 #477124 #246E71
square
#4E2471 #712724 #477124 #246E71
split-complementary
#4E2471 #6E7124 #247127
monochromatic
#100717 #2E1543 #4E2471 #6E339F #8D4AC5

Accessibility & contrast

On white

11.57
#4E2471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E2471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2471
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2471#FFFFFF#000000##FFFFFF
##4E24711.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#11396F
Tritanopia (blue-blind)
#483447
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2471;
/* rgb */ color: rgb(78, 36, 113);
/* oklch */ color: oklch(35.9% 0.129 306.0);
Tailwind
colors: {
  custom: {
    50: '#83629a',
    500: '#4e2471',
    950: '#000000',
  },
}
SCSS
$custom: #4e2471;
$custom-light: #83629a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2471",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 113
  },
  "hsl": {
    "h": 272.727,
    "s": 51.678,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35934,
    "c": 0.12891,
    "h": 306
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#4E2471
secondary
#74A44D
accent
#DB4D8D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2471

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

Preview Lab → · Contrast checker → · Palette generator →

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