#4A1A86#4A1A86

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

Color values

HEX#4A1A86
RGBrgb(74, 26, 134)
HSLhsl(267, 68%, 31%)
HSVhsv(267, 81%, 53%)
CMYKcmyk(44.8%, 80.6%, 0%, 47.5%)
CIE-LABlab(23.39, 44.63, -51.04)
CIE-LCHlch(23.39, 67.80, 311.16°)
OKLaboklab(35.99% 0.0757 -0.1462)
OKLCHoklch(35.99% 0.165 297.4)
XYZxyz(7.4954, 3.9157, 22.9105)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1A86 #56861A
analogous
#1A2086 #4A1A86 #801A86
triadic
#4A1A86 #864A1A #1A864A
tetradic
#4A1A86 #861A20 #56861A #1A8680
square
#4A1A86 #861A20 #56861A #1A8680
split-complementary
#4A1A86 #86801A #20861A
monochromatic
#11061F #2E1053 #4A1A86 #6624B9 #8540DA

Accessibility & contrast

On white

11.78
#4A1A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4A1A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1A86
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1A86#FFFFFF#000000##FFFFFF
##4A1A861.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1a86;
/* rgb */ color: rgb(74, 26, 134);
/* oklch */ color: oklch(36.0% 0.165 297.4);
Tailwind
colors: {
  custom: {
    50: '#835daa',
    500: '#4a1a86',
    950: '#000000',
  },
}
SCSS
$custom: #4a1a86;
$custom-light: #835daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1a86",
  "rgb": {
    "r": 74,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 266.667,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35992,
    "c": 0.16463,
    "h": 297.4
  },
  "luminance": 0.03916
}

Semantic roles & 50–950 ramp

primary
#4A1A86
secondary
#85B942
accent
#EA3D9E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4A1A86

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

Preview Lab → · Contrast checker → · Palette generator →

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