#4A1B8D#4A1B8D

#4A1B8D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.171 H 295.1°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#4A1B8D
RGBrgb(74, 27, 141)
HSLhsl(265, 68%, 33%)
HSVhsv(265, 81%, 55%)
CMYKcmyk(47.5%, 80.9%, 0%, 44.7%)
CIE-LABlab(24.20, 46.04, -54.09)
CIE-LCHlch(24.20, 71.03, 310.41°)
OKLaboklab(36.76% 0.0727 -0.1551)
OKLCHoklch(36.76% 0.171 295.1)
XYZxyz(8.0224, 4.1626, 25.5749)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B8D #5E8D1B
analogous
#1B258D #4A1B8D #831B8D
triadic
#4A1B8D #8D4A1B #1B8D4A
tetradic
#4A1B8D #8D1B25 #5E8D1B #1B8D83
square
#4A1B8D #8D1B25 #5E8D1B #1B8D83
split-complementary
#4A1B8D #8D831B #258D1B
monochromatic
#140726 #2F115A #4A1B8D #6525C0 #8447DC

Accessibility & contrast

On white

11.46
#4A1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4A1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B8D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B8D#FFFFFF#000000##FFFFFF
##4A1B8D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#363B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a1b8d;
/* rgb */ color: rgb(74, 27, 141);
/* oklch */ color: oklch(36.8% 0.171 295.1);
Tailwind
colors: {
  custom: {
    50: '#845eaf',
    500: '#4a1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b8d;
$custom-light: #845eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b8d",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 264.737,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36759,
    "c": 0.17131,
    "h": 295.1
  },
  "luminance": 0.04163
}

Semantic roles & 50–950 ramp

primary
#4A1B8D
secondary
#8CBD46
accent
#EB3DA3
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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