#4E1982#4E1982

#4E1982 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.162 H 301.3°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4E1982
RGBrgb(78, 25, 130)
HSLhsl(270, 68%, 30%)
HSVhsv(270, 81%, 51%)
CMYKcmyk(40%, 80.8%, 0%, 49%)
CIE-LABlab(23.43, 44.68, -48.44)
CIE-LCHlch(23.43, 65.90, 312.69°)
OKLaboklab(36.02% 0.084 -0.1384)
OKLCHoklch(36.02% 0.162 301.3)
XYZxyz(7.5178, 3.9266, 21.4766)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1982 #4D8219
analogous
#1A1982 #4E1982 #821981
triadic
#4E1982 #824E19 #19824E
tetradic
#4E1982 #821A19 #4D8219 #198182
square
#4E1982 #821A19 #4D8219 #198182
split-complementary
#4E1982 #818219 #19821A
monochromatic
#10051B #2F0F4F #4E1982 #6D23B5 #8B3CD9

Accessibility & contrast

On white

11.76
#4E1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1982
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1982#FFFFFF#000000##FFFFFF
##4E19821.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#42354D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1982;
/* rgb */ color: rgb(78, 25, 130);
/* oklch */ color: oklch(36.0% 0.162 301.3);
Tailwind
colors: {
  custom: {
    50: '#855da7',
    500: '#4e1982',
    950: '#000000',
  },
}
SCSS
$custom: #4e1982;
$custom-light: #855da7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1982",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 270.286,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36024,
    "c": 0.16191,
    "h": 301.3
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#4E1982
secondary
#7BB641
accent
#EB3D93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1982

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

Preview Lab → · Contrast checker → · Palette generator →

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