#4B1F87#4B1F87

#4B1F87 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.161 H 296.9°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4B1F87
RGBrgb(75, 31, 135)
HSLhsl(265, 63%, 33%)
HSVhsv(265, 77%, 53%)
CMYKcmyk(44.4%, 77%, 0%, 47.1%)
CIE-LABlab(24.40, 42.80, -50.01)
CIE-LCHlch(24.40, 65.82, 310.56°)
OKLaboklab(36.76% 0.0727 -0.1431)
OKLCHoklch(36.76% 0.161 296.9)
XYZxyz(7.7637, 4.2249, 23.3234)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F87 #5B871F
analogous
#1F2787 #4B1F87 #7F1F87
triadic
#4B1F87 #874B1F #1F874B
tetradic
#4B1F87 #871F27 #5B871F #1F877F
square
#4B1F87 #871F27 #5B871F #1F877F
split-complementary
#4B1F87 #877F1F #27871F
monochromatic
#140823 #2F1455 #4B1F87 #672AB9 #864BD6

Accessibility & contrast

On white

11.38
#4B1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4B1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F87
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F87#FFFFFF#000000##FFFFFF
##4B1F871.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#3B3A52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4b1f87;
/* rgb */ color: rgb(75, 31, 135);
/* oklch */ color: oklch(36.8% 0.161 296.9);
Tailwind
colors: {
  custom: {
    50: '#8460ab',
    500: '#4b1f87',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f87;
$custom-light: #8460ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f87",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 265.385,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36756,
    "c": 0.16053,
    "h": 296.9
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#4B1F87
secondary
#89B84A
accent
#E642A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4B1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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