#4E1F82#4E1F82

#4E1F82 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.155 H 300.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4E1F82
RGBrgb(78, 31, 130)
HSLhsl(268, 61%, 32%)
HSVhsv(268, 76%, 51%)
CMYKcmyk(40%, 76.2%, 0%, 49%)
CIE-LABlab(24.36, 42.02, -46.92)
CIE-LCHlch(24.36, 62.99, 311.84°)
OKLaboklab(36.68% 0.0785 -0.134)
OKLCHoklch(36.68% 0.155 300.4)
XYZxyz(7.6601, 4.2113, 21.5241)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F82 #53821F
analogous
#1F2182 #4E1F82 #801F82
triadic
#4E1F82 #824E1F #1F824E
tetradic
#4E1F82 #821F21 #53821F #1F8280
square
#4E1F82 #821F21 #53821F #1F8280
split-complementary
#4E1F82 #82801F #21821F
monochromatic
#13071F #301351 #4E1F82 #6C2BB3 #8A48D3

Accessibility & contrast

On white

11.40
#4E1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4E1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F82
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F82#FFFFFF#000000##FFFFFF
##4E1F821.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#42384F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e1f82;
/* rgb */ color: rgb(78, 31, 130);
/* oklch */ color: oklch(36.7% 0.155 300.4);
Tailwind
colors: {
  custom: {
    50: '#8560a7',
    500: '#4e1f82',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f82;
$custom-light: #8560a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f82",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 268.485,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36677,
    "c": 0.15529,
    "h": 300.4
  },
  "luminance": 0.04211
}

Semantic roles & 50–950 ramp

primary
#4E1F82
secondary
#81B548
accent
#E54398
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4E1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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