#4E1F6D#4E1F6D

#4E1F6D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.132 H 308.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#4E1F6D
RGBrgb(78, 31, 109)
HSLhsl(276, 56%, 27%)
HSVhsv(276, 72%, 43%)
CMYKcmyk(28.4%, 71.6%, 0%, 57.3%)
CIE-LABlab(22.67, 36.66, -36.26)
CIE-LCHlch(22.67, 51.56, 315.31°)
OKLaboklab(34.95% 0.0823 -0.1026)
OKLCHoklch(34.95% 0.132 308.7)
XYZxyz(6.3916, 3.7039, 14.8432)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F6D #3E6D1F
analogous
#271F6D #4E1F6D #6D1F65
triadic
#4E1F6D #6D4E1F #1F6D4E
tetradic
#4E1F6D #6D271F #3E6D1F #1F656D
square
#4E1F6D #6D271F #3E6D1F #1F656D
split-complementary
#4E1F6D #656D1F #1F6D27
monochromatic
#110718 #2C113D #4E1F6D #702D9D #913EC8

Accessibility & contrast

On white

12.06
#4E1F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E1F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F6D
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F6D#FFFFFF#000000##FFFFFF
##4E1F6D1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#0F376B
Tritanopia (blue-blind)
#493043
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1f6d;
/* rgb */ color: rgb(78, 31, 109);
/* oklch */ color: oklch(34.9% 0.132 308.7);
Tailwind
colors: {
  custom: {
    50: '#835f97',
    500: '#4e1f6d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f6d;
$custom-light: #835f97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f6d",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 276.154,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34945,
    "c": 0.13155,
    "h": 308.7
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#4E1F6D
secondary
#6BA147
accent
#DF4984
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E1F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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