#4E2671#4E2671

#4E2671 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.126 H 305.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#4E2671
RGBrgb(78, 38, 113)
HSLhsl(272, 50%, 30%)
HSVhsv(272, 66%, 44%)
CMYKcmyk(31%, 66.4%, 0%, 55.7%)
CIE-LABlab(24.32, 33.94, -36.18)
CIE-LCHlch(24.32, 49.61, 313.17°)
OKLaboklab(36.23% 0.0731 -0.1024)
OKLCHoklch(36.23% 0.126 305.5)
XYZxyz(6.8150, 4.1982, 16.0709)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2671 #497126
analogous
#292671 #4E2671 #71266F
triadic
#4E2671 #714E26 #26714E
tetradic
#4E2671 #712926 #497126 #266F71
square
#4E2671 #712926 #497126 #266F71
split-complementary
#4E2671 #6F7126 #267129
monochromatic
#100817 #2E1743 #4E2671 #6E359F #8D4EC3

Accessibility & contrast

On white

11.42
#4E2671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4E2671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2671
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2671#FFFFFF#000000##FFFFFF
##4E26711.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#143A6F
Tritanopia (blue-blind)
#483648
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2671;
/* rgb */ color: rgb(78, 38, 113);
/* oklch */ color: oklch(36.2% 0.126 305.5);
Tailwind
colors: {
  custom: {
    50: '#83639a',
    500: '#4e2671',
    950: '#000000',
  },
}
SCSS
$custom: #4e2671;
$custom-light: #83639a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2671",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 272,
    "s": 49.669,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36225,
    "c": 0.12587,
    "h": 305.5
  },
  "luminance": 0.04198
}

Semantic roles & 50–950 ramp

primary
#4E2671
secondary
#77A44F
accent
#D94F8F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2671

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

Preview Lab → · Contrast checker → · Palette generator →

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