#4B1A82#4B1A82

#4B1A82 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.160 H 299.3°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4B1A82
RGBrgb(75, 26, 130)
HSLhsl(268, 67%, 31%)
HSVhsv(268, 80%, 51%)
CMYKcmyk(42.3%, 80%, 0%, 49%)
CIE-LABlab(23.16, 43.75, -48.90)
CIE-LCHlch(23.16, 65.62, 311.82°)
OKLaboklab(35.74% 0.0785 -0.1398)
OKLCHoklch(35.74% 0.16 299.3)
XYZxyz(7.2993, 3.8463, 21.4726)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A82 #51821A
analogous
#1A1D82 #4B1A82 #7F1A82
triadic
#4B1A82 #824B1A #1A824B
tetradic
#4B1A82 #821A1D #51821A #1A827F
square
#4B1A82 #821A1D #51821A #1A827F
split-complementary
#4B1A82 #827F1A #1D821A
monochromatic
#10061C #2E104F #4B1A82 #6824B5 #873ED8

Accessibility & contrast

On white

11.87
#4B1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4B1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1A82
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A82#FFFFFF#000000##FFFFFF
##4B1A821.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003680
Tritanopia (blue-blind)
#3E364E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1a82;
/* rgb */ color: rgb(75, 26, 130);
/* oklch */ color: oklch(35.7% 0.160 299.3);
Tailwind
colors: {
  custom: {
    50: '#835da7',
    500: '#4b1a82',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a82;
$custom-light: #835da7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a82",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 268.269,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35744,
    "c": 0.16038,
    "h": 299.3
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#4B1A82
secondary
#7FB642
accent
#EA3E99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4B1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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