#4B1881#4B1881

#4B1881 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.161 H 299.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#4B1881
RGBrgb(75, 24, 129)
HSLhsl(269, 69%, 30%)
HSVhsv(269, 81%, 51%)
CMYKcmyk(41.9%, 81.4%, 0%, 49.4%)
CIE-LABlab(22.77, 44.34, -48.90)
CIE-LCHlch(22.77, 66.01, 312.20°)
OKLaboklab(35.45% 0.0805 -0.1398)
OKLCHoklch(35.45% 0.161 299.9)
XYZxyz(7.1897, 3.7340, 21.1066)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1881 #4E8118
analogous
#181A81 #4B1881 #7F1881
triadic
#4B1881 #814B18 #18814B
tetradic
#4B1881 #81181A #4E8118 #18817F
square
#4B1881 #81181A #4E8118 #18817F
split-complementary
#4B1881 #817F18 #1A8118
monochromatic
#0F051A #2D0E4D #4B1881 #6922B5 #8739DA

Accessibility & contrast

On white

12.02
#4B1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4B1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1881
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1881#FFFFFF#000000##FFFFFF
##4B18811.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#3E354D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b1881;
/* rgb */ color: rgb(75, 24, 129);
/* oklch */ color: oklch(35.4% 0.161 299.9);
Tailwind
colors: {
  custom: {
    50: '#835ca6',
    500: '#4b1881',
    950: '#000000',
  },
}
SCSS
$custom: #4b1881;
$custom-light: #835ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1881",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 269.143,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.35448,
    "c": 0.16135,
    "h": 299.9
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#4B1881
secondary
#7CB540
accent
#EB3C96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1881

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

Preview Lab → · Contrast checker → · Palette generator →

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