#4B1E87#4B1E87

#4B1E87 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.162 H 297.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#4B1E87
RGBrgb(75, 30, 135)
HSLhsl(266, 64%, 32%)
HSVhsv(266, 78%, 53%)
CMYKcmyk(44.4%, 77.8%, 0%, 47.1%)
CIE-LABlab(24.24, 43.27, -50.28)
CIE-LCHlch(24.24, 66.33, 310.71°)
OKLaboklab(36.64% 0.0736 -0.1439)
OKLCHoklch(36.64% 0.162 297.1)
XYZxyz(7.7379, 4.1735, 23.3149)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1E87 #5A871E
analogous
#1E2687 #4B1E87 #7F1E87
triadic
#4B1E87 #874B1E #1E874B
tetradic
#4B1E87 #871E26 #5A871E #1E877F
square
#4B1E87 #871E26 #5A871E #1E877F
split-complementary
#4B1E87 #877F1E #26871E
monochromatic
#130823 #2F1355 #4B1E87 #6729B9 #8649D7

Accessibility & contrast

On white

11.45
#4B1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1E87
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1E87#FFFFFF#000000##FFFFFF
##4B1E871.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1e87;
/* rgb */ color: rgb(75, 30, 135);
/* oklch */ color: oklch(36.6% 0.162 297.1);
Tailwind
colors: {
  custom: {
    50: '#845fab',
    500: '#4b1e87',
    950: '#000000',
  },
}
SCSS
$custom: #4b1e87;
$custom-light: #845fab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1e87",
  "rgb": {
    "r": 75,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 265.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36641,
    "c": 0.16164,
    "h": 297.1
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#4B1E87
secondary
#88B948
accent
#E741A0
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4B1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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