#4B1F84#4B1F84

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

Color values

HEX#4B1F84
RGBrgb(75, 31, 132)
HSLhsl(266, 62%, 32%)
HSVhsv(266, 77%, 52%)
CMYKcmyk(43.2%, 76.5%, 0%, 48.2%)
CIE-LABlab(24.13, 41.99, -48.56)
CIE-LCHlch(24.13, 64.20, 310.85°)
OKLaboklab(36.49% 0.0734 -0.1389)
OKLCHoklch(36.49% 0.157 297.9)
XYZxyz(7.5554, 4.1416, 22.2267)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F84 #58841F
analogous
#1F2584 #4B1F84 #7E1F84
triadic
#4B1F84 #844B1F #1F844B
tetradic
#4B1F84 #841F25 #58841F #1F847E
square
#4B1F84 #841F25 #58841F #1F847E
split-complementary
#4B1F84 #847E1F #25841F
monochromatic
#130821 #2F1352 #4B1F84 #672BB6 #8649D4

Accessibility & contrast

On white

11.49
#4B1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4B1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F84
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F84#FFFFFF#000000##FFFFFF
##4B1F841.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#3D3950
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b1f84;
/* rgb */ color: rgb(75, 31, 132);
/* oklch */ color: oklch(36.5% 0.157 297.9);
Tailwind
colors: {
  custom: {
    50: '#835fa9',
    500: '#4b1f84',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f84;
$custom-light: #835fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f84",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 266.139,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36486,
    "c": 0.15712,
    "h": 297.9
  },
  "luminance": 0.04142
}

Semantic roles & 50–950 ramp

primary
#4B1F84
secondary
#87B748
accent
#E5439E
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4B1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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