#4B1F8B#4B1F8B

#4B1F8B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.165 H 295.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4B1F8B
RGBrgb(75, 31, 139)
HSLhsl(264, 64%, 33%)
HSVhsv(264, 78%, 55%)
CMYKcmyk(46%, 77.7%, 0%, 45.5%)
CIE-LABlab(24.76, 43.88, -51.91)
CIE-LCHlch(24.76, 67.97, 310.20°)
OKLaboklab(37.12% 0.0716 -0.1487)
OKLCHoklch(37.12% 0.165 295.7)
XYZxyz(8.0506, 4.3397, 24.8346)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F8B #5F8B1F
analogous
#1F298B #4B1F8B #811F8B
triadic
#4B1F8B #8B4B1F #1F8B4B
tetradic
#4B1F8B #8B1F29 #5F8B1F #1F8B81
square
#4B1F8B #8B1F29 #5F8B1F #1F8B81
split-complementary
#4B1F8B #8B811F #298B1F
monochromatic
#150927 #301459 #4B1F8B #662ABD #854DD7

Accessibility & contrast

On white

11.24
#4B1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4B1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F8B
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F8B#FFFFFF#000000##FFFFFF
##4B1F8B1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#393C54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4b1f8b;
/* rgb */ color: rgb(75, 31, 139);
/* oklch */ color: oklch(37.1% 0.165 295.7);
Tailwind
colors: {
  custom: {
    50: '#8460ae',
    500: '#4b1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f8b;
$custom-light: #8460ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f8b",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 264.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37123,
    "c": 0.16506,
    "h": 295.7
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#4B1F8B
secondary
#8DBA4C
accent
#E741A3
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4B1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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