#4B1D87#4B1D87

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

Color values

HEX#4B1D87
RGBrgb(75, 29, 135)
HSLhsl(266, 65%, 32%)
HSVhsv(266, 79%, 53%)
CMYKcmyk(44.4%, 78.5%, 0%, 47.1%)
CIE-LABlab(24.08, 43.73, -50.54)
CIE-LCHlch(24.08, 66.83, 310.87°)
OKLaboklab(36.53% 0.0745 -0.1447)
OKLCHoklch(36.53% 0.163 297.2)
XYZxyz(7.7130, 4.1237, 23.3066)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1D87 #59871D
analogous
#1D2487 #4B1D87 #801D87
triadic
#4B1D87 #874B1D #1D874B
tetradic
#4B1D87 #871D24 #59871D #1D8780
square
#4B1D87 #871D24 #59871D #1D8780
split-complementary
#4B1D87 #87801D #24871D
monochromatic
#130722 #2F1255 #4B1D87 #6728B9 #8647D7

Accessibility & contrast

On white

11.51
#4B1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4B1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1D87
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1D87#FFFFFF#000000##FFFFFF
##4B1D871.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1d87;
/* rgb */ color: rgb(75, 29, 135);
/* oklch */ color: oklch(36.5% 0.163 297.2);
Tailwind
colors: {
  custom: {
    50: '#845fab',
    500: '#4b1d87',
    950: '#000000',
  },
}
SCSS
$custom: #4b1d87;
$custom-light: #845fab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1d87",
  "rgb": {
    "r": 75,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 266.038,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36528,
    "c": 0.16273,
    "h": 297.2
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#4B1D87
secondary
#87B946
accent
#E8409F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4B1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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