#4B1A8E#4B1A8E

#4B1A8E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.173 H 295.5°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4B1A8E
RGBrgb(75, 26, 142)
HSLhsl(265, 69%, 33%)
HSVhsv(265, 82%, 56%)
CMYKcmyk(47.2%, 81.7%, 0%, 44.3%)
CIE-LABlab(24.28, 46.88, -54.57)
CIE-LCHlch(24.28, 71.94, 310.66°)
OKLaboklab(36.87% 0.0748 -0.1565)
OKLCHoklch(36.87% 0.173 295.5)
XYZxyz(8.1522, 4.1874, 25.9647)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A8E #5D8E1A
analogous
#1A238E #4B1A8E #851A8E
triadic
#4B1A8E #8E4B1A #1A8E4B
tetradic
#4B1A8E #8E1A23 #5D8E1A #1A8E85
square
#4B1A8E #8E1A23 #5D8E1A #1A8E85
split-complementary
#4B1A8E #8E851A #238E1A
monochromatic
#140727 #30115A #4B1A8E #6623C2 #8545DD

Accessibility & contrast

On white

11.43
#4B1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4B1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1A8E
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A8E#FFFFFF#000000##FFFFFF
##4B1A8E1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#383B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4b1a8e;
/* rgb */ color: rgb(75, 26, 142);
/* oklch */ color: oklch(36.9% 0.173 295.5);
Tailwind
colors: {
  custom: {
    50: '#855db0',
    500: '#4b1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a8e;
$custom-light: #855db0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a8e",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 265.345,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36872,
    "c": 0.17343,
    "h": 295.5
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#4B1A8E
secondary
#8BBE45
accent
#EC3CA2
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4B1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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