#4A1B87#4A1B87

#4A1B87 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.165 H 296.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#4A1B87
RGBrgb(74, 27, 135)
HSLhsl(266, 67%, 32%)
HSVhsv(266, 80%, 53%)
CMYKcmyk(45.2%, 80%, 0%, 47.1%)
CIE-LABlab(23.63, 44.46, -51.27)
CIE-LCHlch(23.63, 67.86, 310.93°)
OKLaboklab(36.19% 0.0746 -0.1468)
OKLCHoklch(36.19% 0.165 296.9)
XYZxyz(7.5880, 3.9888, 23.2871)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B87 #58871B
analogous
#1B2287 #4A1B87 #801B87
triadic
#4A1B87 #874A1B #1B874A
tetradic
#4A1B87 #871B22 #58871B #1B8780
square
#4A1B87 #871B22 #58871B #1B8780
split-complementary
#4A1B87 #87801B #22871B
monochromatic
#120721 #2E1154 #4A1B87 #6625BA #8443D9

Accessibility & contrast

On white

11.68
#4A1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4A1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B87
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B87#FFFFFF#000000##FFFFFF
##4A1B871.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#3A3951
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1b87;
/* rgb */ color: rgb(74, 27, 135);
/* oklch */ color: oklch(36.2% 0.165 296.9);
Tailwind
colors: {
  custom: {
    50: '#835dab',
    500: '#4a1b87',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b87;
$custom-light: #835dab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b87",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 266.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3619,
    "c": 0.16472,
    "h": 296.9
  },
  "luminance": 0.03989
}

Semantic roles & 50–950 ramp

primary
#4A1B87
secondary
#87BA44
accent
#EA3E9F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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