#4C1F8B#4C1F8B

#4C1F8B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.165 H 296.3°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#4C1F8B
RGBrgb(76, 31, 139)
HSLhsl(265, 64%, 33%)
HSVhsv(265, 78%, 55%)
CMYKcmyk(45.3%, 77.7%, 0%, 45.5%)
CIE-LABlab(24.89, 44.04, -51.70)
CIE-LCHlch(24.89, 67.92, 310.43°)
OKLaboklab(37.24% 0.0732 -0.1481)
OKLCHoklch(37.24% 0.165 296.3)
XYZxyz(8.1294, 4.3804, 24.8383)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F8B #5E8B1F
analogous
#1F288B #4C1F8B #821F8B
triadic
#4C1F8B #8B4C1F #1F8B4C
tetradic
#4C1F8B #8B1F28 #5E8B1F #1F8B82
square
#4C1F8B #8B1F28 #5E8B1F #1F8B82
split-complementary
#4C1F8B #8B821F #288B1F
monochromatic
#150927 #311459 #4C1F8B #672ABD #874DD7

Accessibility & contrast

On white

11.19
#4C1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1F8B
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F8B#FFFFFF#000000##FFFFFF
##4C1F8B1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#3B3C54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c1f8b;
/* rgb */ color: rgb(76, 31, 139);
/* oklch */ color: oklch(37.2% 0.165 296.3);
Tailwind
colors: {
  custom: {
    50: '#8560ae',
    500: '#4c1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f8b;
$custom-light: #8560ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f8b",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 265,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3724,
    "c": 0.16515,
    "h": 296.3
  },
  "luminance": 0.04381
}

Semantic roles & 50–950 ramp

primary
#4C1F8B
secondary
#8CBA4C
accent
#E741A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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