#4E1F66#4E1F66

#4E1F66 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.124 H 312.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4E1F66
RGBrgb(78, 31, 102)
HSLhsl(280, 53%, 26%)
HSVhsv(280, 70%, 40%)
CMYKcmyk(23.5%, 69.6%, 0%, 60%)
CIE-LABlab(22.16, 34.95, -32.54)
CIE-LCHlch(22.16, 47.75, 317.05°)
OKLaboklab(34.42% 0.0829 -0.0917)
OKLCHoklch(34.42% 0.124 312.1)
XYZxyz(6.0297, 3.5591, 12.9371)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F66 #37661F
analogous
#2A1F66 #4E1F66 #661F5A
triadic
#4E1F66 #664E1F #1F664E
tetradic
#4E1F66 #662A1F #37661F #1F5A66
square
#4E1F66 #662A1F #37661F #1F5A66
split-complementary
#4E1F66 #5A661F #1F662A
monochromatic
#120717 #2A1137 #4E1F66 #722D95 #963CC4

Accessibility & contrast

On white

12.27
#4E1F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E1F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F66
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F66#FFFFFF#000000##FFFFFF
##4E1F661.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#193664
Tritanopia (blue-blind)
#4B2D3F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1f66;
/* rgb */ color: rgb(78, 31, 102);
/* oklch */ color: oklch(34.4% 0.124 312.1);
Tailwind
colors: {
  custom: {
    50: '#825e92',
    500: '#4e1f66',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f66;
$custom-light: #825e92;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f66",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 102
  },
  "hsl": {
    "h": 279.718,
    "s": 53.383,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34415,
    "c": 0.12363,
    "h": 312.1
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#4E1F66
secondary
#639A46
accent
#DD4B7C
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E1F66

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

Preview Lab → · Contrast checker → · Palette generator →

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