#4E1671#4E1671

#4E1671 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.147 H 308.3°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#4E1671
RGBrgb(78, 22, 113)
HSLhsl(277, 67%, 26%)
HSVhsv(277, 81%, 44%)
CMYKcmyk(31%, 80.5%, 0%, 55.7%)
CIE-LABlab(21.53, 41.75, -40.70)
CIE-LCHlch(21.53, 58.30, 315.73°)
OKLaboklab(34.24% 0.0913 -0.1156)
OKLCHoklch(34.24% 0.147 308.3)
XYZxyz(6.4088, 3.3859, 15.9355)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1671 #397116
analogous
#211671 #4E1671 #711667
triadic
#4E1671 #714E16 #16714E
tetradic
#4E1671 #712116 #397116 #166771
square
#4E1671 #712116 #397116 #166771
split-complementary
#4E1671 #677116 #167121
monochromatic
#12051A #2B0C3E #4E1671 #7120A4 #942CD6

Accessibility & contrast

On white

12.52
#4E1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1671
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1671#FFFFFF#000000##FFFFFF
##4E16711.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#482D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1671;
/* rgb */ color: rgb(78, 22, 113);
/* oklch */ color: oklch(34.2% 0.147 308.3);
Tailwind
colors: {
  custom: {
    50: '#845a9a',
    500: '#4e1671',
    950: '#000000',
  },
}
SCSS
$custom: #4e1671;
$custom-light: #845a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1671",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 276.923,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34236,
    "c": 0.14728,
    "h": 308.3
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#4E1671
secondary
#65A73C
accent
#EA3E80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1671

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

Preview Lab → · Contrast checker → · Palette generator →

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