#4A1B86#4A1B86

#4A1B86 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.164 H 297.2°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#4A1B86
RGBrgb(74, 27, 134)
HSLhsl(266, 66%, 32%)
HSVhsv(266, 80%, 53%)
CMYKcmyk(44.8%, 79.9%, 0%, 47.5%)
CIE-LABlab(23.54, 44.19, -50.79)
CIE-LCHlch(23.54, 67.33, 311.02°)
OKLaboklab(36.1% 0.0749 -0.1454)
OKLCHoklch(36.1% 0.164 297.2)
XYZxyz(7.5179, 3.9608, 22.9180)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B86 #57861B
analogous
#1B2286 #4A1B86 #801B86
triadic
#4A1B86 #864A1B #1B864A
tetradic
#4A1B86 #861B22 #57861B #1B8680
square
#4A1B86 #861B22 #57861B #1B8680
split-complementary
#4A1B86 #86801B #22861B
monochromatic
#120620 #2E1153 #4A1B86 #6625B9 #8542D9

Accessibility & contrast

On white

11.72
#4A1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4A1B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B86
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B86#FFFFFF#000000##FFFFFF
##4A1B861.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1b86;
/* rgb */ color: rgb(74, 27, 134);
/* oklch */ color: oklch(36.1% 0.164 297.2);
Tailwind
colors: {
  custom: {
    50: '#835daa',
    500: '#4a1b86',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b86;
$custom-light: #835daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b86",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 266.355,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36097,
    "c": 0.16361,
    "h": 297.2
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#4A1B86
secondary
#86B944
accent
#E93E9E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1B86

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

Preview Lab → · Contrast checker → · Palette generator →

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