#4B1F9D#4B1F9D

#4B1F9D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.185 H 290.9°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#4B1F9D
RGBrgb(75, 31, 157)
HSLhsl(261, 67%, 37%)
HSVhsv(261, 80%, 62%)
CMYKcmyk(52.2%, 80.3%, 0%, 38.4%)
CIE-LABlab(26.48, 48.76, -60.21)
CIE-LCHlch(26.48, 77.47, 309.00°)
OKLaboklab(38.84% 0.0662 -0.173)
OKLCHoklch(38.84% 0.185 290.9)
XYZxyz(9.4757, 4.9098, 32.3401)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F9D #719D1F
analogous
#1F329D #4B1F9D #8A1F9D
triadic
#4B1F9D #9D4B1F #1F9D4B
tetradic
#4B1F9D #9D1F32 #719D1F #1F9D8A
square
#4B1F9D #9D1F32 #719D1F #1F9D8A
split-complementary
#4B1F9D #9D8A1F #329D1F
monochromatic
#1A0B37 #33156A #4B1F9D #6329D0 #8758DE

Accessibility & contrast

On white

10.60
#4B1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4B1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F9D
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F9D#FFFFFF#000000##FFFFFF
##4B1F9D1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#2E445E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4b1f9d;
/* rgb */ color: rgb(75, 31, 157);
/* oklch */ color: oklch(38.8% 0.185 290.9);
Tailwind
colors: {
  custom: {
    50: '#8761bb',
    500: '#4b1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f9d;
$custom-light: #8761bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f9d",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 260.952,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38839,
    "c": 0.18525,
    "h": 290.9
  },
  "luminance": 0.0491
}

Semantic roles & 50–950 ramp

primary
#4B1F9D
secondary
#9CC256
accent
#EA3EAE
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4B1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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