#4E1F6A#4E1F6A

#4E1F6A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.128 H 310.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4E1F6A
RGBrgb(78, 31, 106)
HSLhsl(278, 55%, 27%)
HSVhsv(278, 71%, 42%)
CMYKcmyk(26.4%, 70.8%, 0%, 58.4%)
CIE-LABlab(22.45, 35.92, -34.68)
CIE-LCHlch(22.45, 49.93, 316.01°)
OKLaboklab(34.72% 0.0826 -0.098)
OKLCHoklch(34.72% 0.128 310.1)
XYZxyz(6.2329, 3.6404, 14.0072)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F6A #3B6A1F
analogous
#291F6A #4E1F6A #6A1F61
triadic
#4E1F6A #6A4E1F #1F6A4E
tetradic
#4E1F6A #6A291F #3B6A1F #1F616A
square
#4E1F6A #6A291F #3B6A1F #1F616A
split-complementary
#4E1F6A #616A1F #1F6A29
monochromatic
#110718 #2B113B #4E1F6A #712D99 #933DC6

Accessibility & contrast

On white

12.15
#4E1F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E1F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F6A
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F6A#FFFFFF#000000##FFFFFF
##4E1F6A1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#143668
Tritanopia (blue-blind)
#4A2F41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1f6a;
/* rgb */ color: rgb(78, 31, 106);
/* oklch */ color: oklch(34.7% 0.128 310.1);
Tailwind
colors: {
  custom: {
    50: '#835f95',
    500: '#4e1f6a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f6a;
$custom-light: #835f95;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f6a",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 277.6,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34715,
    "c": 0.12816,
    "h": 310.1
  },
  "luminance": 0.0364
}

Semantic roles & 50–950 ramp

primary
#4E1F6A
secondary
#679E47
accent
#DE4A81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E1F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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