#4C1F8D#4C1F8D

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

Color values

HEX#4C1F8D
RGBrgb(76, 31, 141)
HSLhsl(265, 64%, 34%)
HSVhsv(265, 78%, 55%)
CMYKcmyk(46.1%, 78%, 0%, 44.7%)
CIE-LABlab(25.07, 44.58, -52.65)
CIE-LCHlch(25.07, 68.99, 310.26°)
OKLaboklab(37.42% 0.0726 -0.1509)
OKLCHoklch(37.42% 0.167 295.7)
XYZxyz(8.2769, 4.4394, 25.6149)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F8D #608D1F
analogous
#1F298D #4C1F8D #831F8D
triadic
#4C1F8D #8D4C1F #1F8D4C
tetradic
#4C1F8D #8D1F29 #608D1F #1F8D83
square
#4C1F8D #8D1F29 #608D1F #1F8D83
split-complementary
#4C1F8D #8D831F #298D1F
monochromatic
#160929 #31145B #4C1F8D #672ABF #874ED8

Accessibility & contrast

On white

11.12
#4C1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4C1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F8D
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F8D#FFFFFF#000000##FFFFFF
##4C1F8D1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#3A3D55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c1f8d;
/* rgb */ color: rgb(76, 31, 141);
/* oklch */ color: oklch(37.4% 0.167 295.7);
Tailwind
colors: {
  custom: {
    50: '#8560af',
    500: '#4c1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f8d;
$custom-light: #8560af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f8d",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 264.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37424,
    "c": 0.16741,
    "h": 295.7
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

primary
#4C1F8D
secondary
#8EBB4D
accent
#E741A3
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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