#4E1FA9#4E1FA9

#4E1FA9 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.198 H 289.7°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#4E1FA9
RGBrgb(78, 31, 169)
HSLhsl(260, 69%, 39%)
HSVhsv(260, 82%, 66%)
CMYKcmyk(53.8%, 81.7%, 0%, 33.7%)
CIE-LABlab(28.02, 52.38, -64.94)
CIE-LCHlch(28.02, 83.43, 308.89°)
OKLaboklab(40.35% 0.0669 -0.1868)
OKLCHoklch(40.35% 0.198 289.7)
XYZxyz(10.7912, 5.4637, 38.0144)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1FA9 #7AA91F
analogous
#1F35A9 #4E1FA9 #931FA9
triadic
#4E1FA9 #A94E1F #1FA94E
tetradic
#4E1FA9 #A91F35 #7AA91F #1FA993
square
#4E1FA9 #A91F35 #7AA91F #1FA993
split-complementary
#4E1FA9 #A9931F #35A91F
monochromatic
#1E0C42 #361675 #4E1FA9 #672DD8 #8D60E2

Accessibility & contrast

On white

10.03
#4E1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4E1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1FA9
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1FA9#FFFFFF#000000##FFFFFF
##4E1FA91.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#003FA7
Tritanopia (blue-blind)
#2B4865
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e1fa9;
/* rgb */ color: rgb(78, 31, 169);
/* oklch */ color: oklch(40.3% 0.198 289.7);
Tailwind
colors: {
  custom: {
    50: '#8a62c4',
    500: '#4e1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #4e1fa9;
$custom-light: #8a62c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1fa9",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 260.435,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40346,
    "c": 0.19838,
    "h": 289.7
  },
  "luminance": 0.05464
}

Semantic roles & 50–950 ramp

primary
#4E1FA9
secondary
#A3C75D
accent
#EC3CB0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4E1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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