#4A1686#4A1686

#4A1686 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.168 H 297.9°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#4A1686
RGBrgb(74, 22, 134)
HSLhsl(268, 72%, 31%)
HSVhsv(268, 84%, 53%)
CMYKcmyk(44.8%, 83.6%, 0%, 47.5%)
CIE-LABlab(22.83, 46.26, -51.96)
CIE-LCHlch(22.83, 69.57, 311.68°)
OKLaboklab(35.6% 0.0789 -0.1488)
OKLCHoklch(35.6% 0.168 297.9)
XYZxyz(7.4129, 3.7508, 22.8830)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1686 #528616
analogous
#161A86 #4A1686 #821686
triadic
#4A1686 #864A16 #16864A
tetradic
#4A1686 #86161A #528616 #168682
square
#4A1686 #86161A #528616 #168682
split-complementary
#4A1686 #868216 #1A8616
monochromatic
#10051D #2D0D51 #4A1686 #671FBB #8538DE

Accessibility & contrast

On white

12.00
#4A1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4A1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1686
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1686#FFFFFF#000000##FFFFFF
##4A16861.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003584
Tritanopia (blue-blind)
#3A364F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a1686;
/* rgb */ color: rgb(74, 22, 134);
/* oklch */ color: oklch(35.6% 0.168 297.9);
Tailwind
colors: {
  custom: {
    50: '#835baa',
    500: '#4a1686',
    950: '#000000',
  },
}
SCSS
$custom: #4a1686;
$custom-light: #835baa;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1686",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 267.857,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35602,
    "c": 0.16843,
    "h": 297.9
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#4A1686
secondary
#80BA3E
accent
#EF399A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1686

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

Preview Lab → · Contrast checker → · Palette generator →

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