#4B1F8D#4B1F8D

#4B1F8D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.167 H 295.1°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#4B1F8D
RGBrgb(75, 31, 141)
HSLhsl(264, 64%, 34%)
HSVhsv(264, 78%, 55%)
CMYKcmyk(46.8%, 78%, 0%, 44.7%)
CIE-LABlab(24.95, 44.42, -52.86)
CIE-LCHlch(24.95, 69.04, 310.04°)
OKLaboklab(37.31% 0.071 -0.1515)
OKLCHoklch(37.31% 0.167 295.1)
XYZxyz(8.1981, 4.3987, 25.6112)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F8D #618D1F
analogous
#1F2A8D #4B1F8D #821F8D
triadic
#4B1F8D #8D4B1F #1F8D4B
tetradic
#4B1F8D #8D1F2A #618D1F #1F8D82
square
#4B1F8D #8D1F2A #618D1F #1F8D82
split-complementary
#4B1F8D #8D821F #2A8D1F
monochromatic
#160929 #30145B #4B1F8D #662ABF #854ED8

Accessibility & contrast

On white

11.17
#4B1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4B1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F8D
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F8D#FFFFFF#000000##FFFFFF
##4B1F8D1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#383D55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4b1f8d;
/* rgb */ color: rgb(75, 31, 141);
/* oklch */ color: oklch(37.3% 0.167 295.1);
Tailwind
colors: {
  custom: {
    50: '#8460af',
    500: '#4b1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f8d;
$custom-light: #8460af;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f8d",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 264,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37308,
    "c": 0.16733,
    "h": 295.1
  },
  "luminance": 0.04399
}

Semantic roles & 50–950 ramp

primary
#4B1F8D
secondary
#8FBB4D
accent
#E741A5
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4B1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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