#4B1A8A#4B1A8A

#4B1A8A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.169 H 296.7°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#4B1A8A
RGBrgb(75, 26, 138)
HSLhsl(266, 68%, 32%)
HSVhsv(266, 81%, 54%)
CMYKcmyk(45.7%, 81.2%, 0%, 45.9%)
CIE-LABlab(23.90, 45.83, -52.71)
CIE-LCHlch(23.90, 69.84, 311.01°)
OKLaboklab(36.49% 0.0761 -0.151)
OKLCHoklch(36.49% 0.169 296.7)
XYZxyz(7.8573, 4.0695, 24.4113)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A8A #598A1A
analogous
#1A218A #4B1A8A #831A8A
triadic
#4B1A8A #8A4B1A #1A8A4B
tetradic
#4B1A8A #8A1A21 #598A1A #1A8A83
square
#4B1A8A #8A1A21 #598A1A #1A8A83
split-complementary
#4B1A8A #8A831A #218A1A
monochromatic
#130723 #2F1057 #4B1A8A #6724BD #8643DC

Accessibility & contrast

On white

11.58
#4B1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4B1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1A8A
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A8A#FFFFFF#000000##FFFFFF
##4B1A8A1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#3A3A52
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b1a8a;
/* rgb */ color: rgb(75, 26, 138);
/* oklch */ color: oklch(36.5% 0.169 296.7);
Tailwind
colors: {
  custom: {
    50: '#845dad',
    500: '#4b1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a8a;
$custom-light: #845dad;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a8a",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 266.25,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3649,
    "c": 0.16909,
    "h": 296.7
  },
  "luminance": 0.0407
}

Semantic roles & 50–950 ramp

primary
#4B1A8A
secondary
#87BD43
accent
#EB3D9F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4B1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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