#4E1FA5#4E1FA5

#4E1FA5 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.194 H 290.6°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#4E1FA5
RGBrgb(78, 31, 165)
HSLhsl(261, 68%, 38%)
HSVhsv(261, 81%, 65%)
CMYKcmyk(52.7%, 81.2%, 0%, 35.3%)
CIE-LABlab(27.62, 51.31, -63.18)
CIE-LCHlch(27.62, 81.39, 309.08°)
OKLaboklab(39.95% 0.0682 -0.1816)
OKLCHoklch(39.95% 0.194 290.6)
XYZxyz(10.4214, 5.3158, 36.0670)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1FA5 #76A51F
analogous
#1F33A5 #4E1FA5 #911FA5
triadic
#4E1FA5 #A54E1F #1FA54E
tetradic
#4E1FA5 #A51F33 #76A51F #1FA591
square
#4E1FA5 #A51F33 #76A51F #1FA591
split-complementary
#4E1FA5 #A5911F #33A51F
monochromatic
#1D0C3E #361571 #4E1FA5 #672AD7 #8C5EE1

Accessibility & contrast

On white

10.18
#4E1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4E1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1FA5
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1FA5#FFFFFF#000000##FFFFFF
##4E1FA51.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#2E4763
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e1fa5;
/* rgb */ color: rgb(78, 31, 165);
/* oklch */ color: oklch(39.9% 0.194 290.6);
Tailwind
colors: {
  custom: {
    50: '#8a62c1',
    500: '#4e1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4e1fa5;
$custom-light: #8a62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1fa5",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 261.045,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39949,
    "c": 0.19404,
    "h": 290.6
  },
  "luminance": 0.05316
}

Semantic roles & 50–950 ramp

primary
#4E1FA5
secondary
#A0C55B
accent
#EB3DAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4E1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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