#4E1FB4#4E1FB4

#4E1FB4 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.5% C 0.210 H 287.4°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4E1FB4
RGBrgb(78, 31, 180)
HSLhsl(259, 71%, 41%)
HSVhsv(259, 83%, 71%)
CMYKcmyk(56.7%, 82.8%, 0%, 29.4%)
CIE-LABlab(29.14, 55.32, -69.67)
CIE-LCHlch(29.14, 88.96, 308.45°)
OKLaboklab(41.46% 0.063 -0.2006)
OKLCHoklch(41.46% 0.21 287.4)
XYZxyz(11.8676, 5.8943, 43.6835)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1FB4 #85B41F
analogous
#1F3BB4 #4E1FB4 #991FB4
triadic
#4E1FB4 #B44E1F #1FB44E
tetradic
#4E1FB4 #B41F3B #85B41F #1FB499
square
#4E1FB4 #B41F3B #85B41F #1FB499
split-complementary
#4E1FB4 #B4991F #3BB41F
monochromatic
#210D4C #371680 #4E1FB4 #6934DC #9068E5

Accessibility & contrast

On white

9.64
#4E1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4E1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1FB4
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1FB4#FFFFFF#000000##FFFFFF
##4E1FB41.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#0041B1
Tritanopia (blue-blind)
#1E4D6C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e1fb4;
/* rgb */ color: rgb(78, 31, 180);
/* oklch */ color: oklch(41.5% 0.210 287.4);
Tailwind
colors: {
  custom: {
    50: '#8c63cc',
    500: '#4e1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #4e1fb4;
$custom-light: #8c63cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1fb4",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 258.926,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4146,
    "c": 0.21027,
    "h": 287.4
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#4E1FB4
secondary
#AACB64
accent
#ED3AB5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4E1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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