#4C1F9D#4C1F9D

#4C1F9D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.185 H 291.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4C1F9D
RGBrgb(76, 31, 157)
HSLhsl(261, 67%, 37%)
HSVhsv(261, 80%, 62%)
CMYKcmyk(51.6%, 80.3%, 0%, 38.4%)
CIE-LABlab(26.59, 48.89, -60.01)
CIE-LCHlch(26.59, 77.41, 309.17°)
OKLaboklab(38.95% 0.0677 -0.1724)
OKLCHoklch(38.95% 0.185 291.4)
XYZxyz(9.5545, 4.9504, 32.3438)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F9D #709D1F
analogous
#1F319D #4C1F9D #8B1F9D
triadic
#4C1F9D #9D4C1F #1F9D4C
tetradic
#4C1F9D #9D1F31 #709D1F #1F9D8B
square
#4C1F9D #9D1F31 #709D1F #1F9D8B
split-complementary
#4C1F9D #9D8B1F #319D1F
monochromatic
#1B0B37 #33156A #4C1F9D #6529D0 #8858DE

Accessibility & contrast

On white

10.55
#4C1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F9D
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F9D#FFFFFF#000000##FFFFFF
##4C1F9D1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1f9d;
/* rgb */ color: rgb(76, 31, 157);
/* oklch */ color: oklch(38.9% 0.185 291.4);
Tailwind
colors: {
  custom: {
    50: '#8761bb',
    500: '#4c1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f9d;
$custom-light: #8761bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f9d",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 261.429,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38947,
    "c": 0.18525,
    "h": 291.4
  },
  "luminance": 0.04951
}

Semantic roles & 50–950 ramp

primary
#4C1F9D
secondary
#9BC256
accent
#EA3EAC
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4C1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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