#4A1786#4A1786

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

Color values

HEX#4A1786
RGBrgb(74, 23, 134)
HSLhsl(268, 71%, 31%)
HSVhsv(268, 83%, 53%)
CMYKcmyk(44.8%, 82.8%, 0%, 47.5%)
CIE-LABlab(22.96, 45.87, -51.74)
CIE-LCHlch(22.96, 69.14, 311.56°)
OKLaboklab(35.7% 0.0781 -0.1482)
OKLCHoklch(35.7% 0.168 297.8)
XYZxyz(7.4324, 3.7897, 22.8895)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1786 #538617
analogous
#171B86 #4A1786 #811786
triadic
#4A1786 #864A17 #17864A
tetradic
#4A1786 #86171B #538617 #178681
square
#4A1786 #86171B #538617 #178681
split-complementary
#4A1786 #868117 #1B8617
monochromatic
#10051E #2D0E52 #4A1786 #6720BA #853ADD

Accessibility & contrast

On white

11.95
#4A1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4A1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1786
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1786#FFFFFF#000000##FFFFFF
##4A17861.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.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: #4a1786;
/* rgb */ color: rgb(74, 23, 134);
/* oklch */ color: oklch(35.7% 0.168 297.8);
Tailwind
colors: {
  custom: {
    50: '#835baa',
    500: '#4a1786',
    950: '#000000',
  },
}
SCSS
$custom: #4a1786;
$custom-light: #835baa;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1786",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 267.568,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35695,
    "c": 0.16751,
    "h": 297.8
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#4A1786
secondary
#81BA3F
accent
#ED3A9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1786

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

Preview Lab → · Contrast checker → · Palette generator →

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