#4E1FA0#4E1FA0

#4E1FA0 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.189 H 291.8°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4E1FA0
RGBrgb(78, 31, 160)
HSLhsl(262, 68%, 37%)
HSVhsv(262, 81%, 63%)
CMYKcmyk(51.2%, 80.6%, 0%, 37.3%)
CIE-LABlab(27.12, 49.97, -60.96)
CIE-LCHlch(27.12, 78.83, 309.34°)
OKLaboklab(39.46% 0.0699 -0.1751)
OKLCHoklch(39.46% 0.189 291.8)
XYZxyz(9.9752, 5.1374, 33.7169)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1FA0 #71A01F
analogous
#1F31A0 #4E1FA0 #8E1FA0
triadic
#4E1FA0 #A04E1F #1FA04E
tetradic
#4E1FA0 #A01F31 #71A01F #1FA08E
square
#4E1FA0 #A01F31 #71A01F #1FA08E
split-complementary
#4E1FA0 #A08E1F #31A01F
monochromatic
#1C0B39 #35156D #4E1FA0 #6729D3 #8B5ADF

Accessibility & contrast

On white

10.36
#4E1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1FA0
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1FA0#FFFFFF#000000##FFFFFF
##4E1FA01.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#003D9E
Tritanopia (blue-blind)
#324560
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e1fa0;
/* rgb */ color: rgb(78, 31, 160);
/* oklch */ color: oklch(39.5% 0.189 291.8);
Tailwind
colors: {
  custom: {
    50: '#8961bd',
    500: '#4e1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #4e1fa0;
$custom-light: #8961bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1fa0",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 261.86,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39457,
    "c": 0.18858,
    "h": 291.8
  },
  "luminance": 0.05138
}

Semantic roles & 50–950 ramp

primary
#4E1FA0
secondary
#9CC358
accent
#EA3DAB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4E1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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