#4B1A8D#4B1A8D

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

Color values

HEX#4B1A8D
RGBrgb(75, 26, 141)
HSLhsl(266, 69%, 33%)
HSVhsv(266, 82%, 55%)
CMYKcmyk(46.8%, 81.6%, 0%, 44.7%)
CIE-LABlab(24.19, 46.61, -54.11)
CIE-LCHlch(24.19, 71.42, 310.75°)
OKLaboklab(36.78% 0.0751 -0.1551)
OKLCHoklch(36.78% 0.172 295.8)
XYZxyz(8.0775, 4.1575, 25.5710)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A8D #5C8D1A
analogous
#1A238D #4B1A8D #841A8D
triadic
#4B1A8D #8D4B1A #1A8D4B
tetradic
#4B1A8D #8D1A23 #5C8D1A #1A8D84
square
#4B1A8D #8D1A23 #5C8D1A #1A8D84
split-complementary
#4B1A8D #8D841A #238D1A
monochromatic
#140726 #301059 #4B1A8D #6624C1 #8545DD

Accessibility & contrast

On white

11.47
#4B1A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1A8D
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A8D#FFFFFF#000000##FFFFFF
##4B1A8D1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#383B54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b1a8d;
/* rgb */ color: rgb(75, 26, 141);
/* oklch */ color: oklch(36.8% 0.172 295.8);
Tailwind
colors: {
  custom: {
    50: '#855daf',
    500: '#4b1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a8d;
$custom-light: #855daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a8d",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 265.565,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36776,
    "c": 0.17234,
    "h": 295.8
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#4B1A8D
secondary
#8ABE45
accent
#EC3CA1
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4B1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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