#4A1886#4A1886

#4A1886 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.167 H 297.7°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#4A1886
RGBrgb(74, 24, 134)
HSLhsl(267, 70%, 31%)
HSVhsv(267, 82%, 53%)
CMYKcmyk(44.8%, 82.1%, 0%, 47.5%)
CIE-LABlab(23.10, 45.46, -51.51)
CIE-LCHlch(23.10, 68.71, 311.43°)
OKLaboklab(35.79% 0.0773 -0.1475)
OKLCHoklch(35.79% 0.167 297.7)
XYZxyz(7.4526, 3.8302, 22.8963)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1886 #548618
analogous
#181D86 #4A1886 #811886
triadic
#4A1886 #864A18 #18864A
tetradic
#4A1886 #86181D #548618 #188681
square
#4A1886 #86181D #548618 #188681
split-complementary
#4A1886 #868118 #1D8618
monochromatic
#11051E #2D0F52 #4A1886 #6721BA #853CDC

Accessibility & contrast

On white

11.89
#4A1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1886
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1886#FFFFFF#000000##FFFFFF
##4A18861.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1886;
/* rgb */ color: rgb(74, 24, 134);
/* oklch */ color: oklch(35.8% 0.167 297.7);
Tailwind
colors: {
  custom: {
    50: '#835caa',
    500: '#4a1886',
    950: '#000000',
  },
}
SCSS
$custom: #4a1886;
$custom-light: #835caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1886",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 267.273,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35791,
    "c": 0.16658,
    "h": 297.7
  },
  "luminance": 0.0383
}

Semantic roles & 50–950 ramp

primary
#4A1886
secondary
#82BA40
accent
#EC3B9C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1886

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

Preview Lab → · Contrast checker → · Palette generator →

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