#4E1F6B#4E1F6B

#4E1F6B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.129 H 309.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4E1F6B
RGBrgb(78, 31, 107)
HSLhsl(277, 55%, 27%)
HSVhsv(277, 71%, 42%)
CMYKcmyk(27.1%, 71%, 0%, 58%)
CIE-LABlab(22.52, 36.16, -35.21)
CIE-LCHlch(22.52, 50.47, 315.77°)
OKLaboklab(34.79% 0.0825 -0.0995)
OKLCHoklch(34.79% 0.129 309.7)
XYZxyz(6.2852, 3.6613, 14.2827)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F6B #3C6B1F
analogous
#281F6B #4E1F6B #6B1F62
triadic
#4E1F6B #6B4E1F #1F6B4E
tetradic
#4E1F6B #6B281F #3C6B1F #1F626B
square
#4E1F6B #6B281F #3C6B1F #1F626B
split-complementary
#4E1F6B #626B1F #1F6B28
monochromatic
#110718 #2B113C #4E1F6B #712D9A #923DC7

Accessibility & contrast

On white

12.12
#4E1F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1F6B
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F6B#FFFFFF#000000##FFFFFF
##4E1F6B1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#123669
Tritanopia (blue-blind)
#4A2F42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1f6b;
/* rgb */ color: rgb(78, 31, 107);
/* oklch */ color: oklch(34.8% 0.129 309.7);
Tailwind
colors: {
  custom: {
    50: '#835f96',
    500: '#4e1f6b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f6b;
$custom-light: #835f96;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f6b",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 277.105,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34791,
    "c": 0.12929,
    "h": 309.7
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#4E1F6B
secondary
#689F47
accent
#DE4982
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E1F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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