#4B1A8B#4B1A8B

#4B1A8B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.170 H 296.4°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4B1A8B
RGBrgb(75, 26, 139)
HSLhsl(266, 68%, 32%)
HSVhsv(266, 81%, 55%)
CMYKcmyk(46%, 81.3%, 0%, 45.5%)
CIE-LABlab(23.99, 46.09, -53.18)
CIE-LCHlch(23.99, 70.37, 310.92°)
OKLaboklab(36.59% 0.0757 -0.1524)
OKLCHoklch(36.59% 0.17 296.4)
XYZxyz(7.9300, 4.0985, 24.7944)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A8B #5A8B1A
analogous
#1A218B #4B1A8B #841A8B
triadic
#4B1A8B #8B4B1A #1A8B4B
tetradic
#4B1A8B #8B1A21 #5A8B1A #1A8B84
square
#4B1A8B #8B1A21 #5A8B1A #1A8B84
split-complementary
#4B1A8B #8B841A #218B1A
monochromatic
#130724 #2F1057 #4B1A8B #6724BF #8643DC

Accessibility & contrast

On white

11.54
#4B1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4B1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1A8B
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A8B#FFFFFF#000000##FFFFFF
##4B1A8B1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#393A53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b1a8b;
/* rgb */ color: rgb(75, 26, 139);
/* oklch */ color: oklch(36.6% 0.170 296.4);
Tailwind
colors: {
  custom: {
    50: '#845dae',
    500: '#4b1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a8b;
$custom-light: #845dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a8b",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 266.018,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36585,
    "c": 0.17017,
    "h": 296.4
  },
  "luminance": 0.04099
}

Semantic roles & 50–950 ramp

primary
#4B1A8B
secondary
#88BD44
accent
#EB3CA0
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4B1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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