#4A1986#4A1986

#4A1986 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.166 H 297.5°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#4A1986
RGBrgb(74, 25, 134)
HSLhsl(267, 69%, 31%)
HSVhsv(267, 81%, 53%)
CMYKcmyk(44.8%, 81.3%, 0%, 47.5%)
CIE-LABlab(23.24, 45.05, -51.28)
CIE-LCHlch(23.24, 68.26, 311.30°)
OKLaboklab(35.89% 0.0766 -0.1469)
OKLCHoklch(35.89% 0.166 297.5)
XYZxyz(7.4736, 3.8722, 22.9033)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1986 #558619
analogous
#191F86 #4A1986 #801986
triadic
#4A1986 #864A19 #19864A
tetradic
#4A1986 #86191F #558619 #198680
square
#4A1986 #86191F #558619 #198680
split-complementary
#4A1986 #868019 #1F8619
monochromatic
#11061F #2E0F52 #4A1986 #6623BA #853EDB

Accessibility & contrast

On white

11.83
#4A1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4A1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1986
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1986#FFFFFF#000000##FFFFFF
##4A19861.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#3A3750
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a1986;
/* rgb */ color: rgb(74, 25, 134);
/* oklch */ color: oklch(35.9% 0.166 297.5);
Tailwind
colors: {
  custom: {
    50: '#835caa',
    500: '#4a1986',
    950: '#000000',
  },
}
SCSS
$custom: #4a1986;
$custom-light: #835caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1986",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 266.972,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3589,
    "c": 0.16561,
    "h": 297.5
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

primary
#4A1986
secondary
#83BA41
accent
#EB3C9D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1986

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

Preview Lab → · Contrast checker → · Palette generator →

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