#4B1884#4B1884

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

Color values

HEX#4B1884
RGBrgb(75, 24, 132)
HSLhsl(268, 69%, 31%)
HSVhsv(268, 82%, 52%)
CMYKcmyk(43.2%, 81.8%, 0%, 48.2%)
CIE-LABlab(23.05, 45.11, -50.34)
CIE-LCHlch(23.05, 67.59, 311.86°)
OKLaboklab(35.73% 0.0796 -0.144)
OKLCHoklch(35.73% 0.165 298.9)
XYZxyz(7.3921, 3.8150, 22.1722)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1884 #518418
analogous
#181B84 #4B1884 #811884
triadic
#4B1884 #844B18 #18844B
tetradic
#4B1884 #84181B #518418 #188481
square
#4B1884 #84181B #518418 #188481
split-complementary
#4B1884 #848118 #1B8418
monochromatic
#10051C #2E0F50 #4B1884 #6821B8 #873BDB

Accessibility & contrast

On white

11.91
#4B1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4B1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1884
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1884#FFFFFF#000000##FFFFFF
##4B18841.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003682
Tritanopia (blue-blind)
#3D364E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1884;
/* rgb */ color: rgb(75, 24, 132);
/* oklch */ color: oklch(35.7% 0.165 298.9);
Tailwind
colors: {
  custom: {
    50: '#845ca9',
    500: '#4b1884',
    950: '#000000',
  },
}
SCSS
$custom: #4b1884;
$custom-light: #845ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1884",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 268.333,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35727,
    "c": 0.16457,
    "h": 298.9
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#4B1884
secondary
#7FB840
accent
#EC3C99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4B1884

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

Preview Lab → · Contrast checker → · Palette generator →

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