#4E1FA6#4E1FA6

#4E1FA6 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.195 H 290.4°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4E1FA6
RGBrgb(78, 31, 166)
HSLhsl(261, 69%, 39%)
HSVhsv(261, 81%, 65%)
CMYKcmyk(53%, 81.3%, 0%, 34.9%)
CIE-LABlab(27.72, 51.58, -63.62)
CIE-LCHlch(27.72, 81.90, 309.03°)
OKLaboklab(40.05% 0.0679 -0.1829)
OKLCHoklch(40.05% 0.195 290.4)
XYZxyz(10.5128, 5.3524, 36.5482)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1FA6 #77A61F
analogous
#1F33A6 #4E1FA6 #911FA6
triadic
#4E1FA6 #A64E1F #1FA64E
tetradic
#4E1FA6 #A61F33 #77A61F #1FA691
square
#4E1FA6 #A61F33 #77A61F #1FA691
split-complementary
#4E1FA6 #A6911F #33A61F
monochromatic
#1E0C3F #361572 #4E1FA6 #672BD7 #8C5EE1

Accessibility & contrast

On white

10.14
#4E1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1FA6
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1FA6#FFFFFF#000000##FFFFFF
##4E1FA61.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#2D4763
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e1fa6;
/* rgb */ color: rgb(78, 31, 166);
/* oklch */ color: oklch(40.0% 0.195 290.4);
Tailwind
colors: {
  custom: {
    50: '#8a62c2',
    500: '#4e1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #4e1fa6;
$custom-light: #8a62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1fa6",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 260.889,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40048,
    "c": 0.19512,
    "h": 290.4
  },
  "luminance": 0.05353
}

Semantic roles & 50–950 ramp

primary
#4E1FA6
secondary
#A1C55B
accent
#EB3CAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4E1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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