#4C1F9C#4C1F9C

#4C1F9C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.184 H 291.7°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4C1F9C
RGBrgb(76, 31, 156)
HSLhsl(262, 67%, 37%)
HSVhsv(262, 80%, 61%)
CMYKcmyk(51.3%, 80.1%, 0%, 38.8%)
CIE-LABlab(26.50, 48.62, -59.56)
CIE-LCHlch(26.50, 76.89, 309.23°)
OKLaboklab(38.85% 0.0681 -0.1711)
OKLCHoklch(38.85% 0.184 291.7)
XYZxyz(9.4695, 4.9164, 31.8961)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F9C #6F9C1F
analogous
#1F319C #4C1F9C #8B1F9C
triadic
#4C1F9C #9C4C1F #1F9C4C
tetradic
#4C1F9C #9C1F31 #6F9C1F #1F9C8B
square
#4C1F9C #9C1F31 #6F9C1F #1F9C8B
split-complementary
#4C1F9C #9C8B1F #319C1F
monochromatic
#1A0B36 #331569 #4C1F9C #6529CF #8858DE

Accessibility & contrast

On white

10.59
#4C1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4C1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F9C
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F9C#FFFFFF#000000##FFFFFF
##4C1F9C1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#31435E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c1f9c;
/* rgb */ color: rgb(76, 31, 156);
/* oklch */ color: oklch(38.9% 0.184 291.7);
Tailwind
colors: {
  custom: {
    50: '#8761ba',
    500: '#4c1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f9c;
$custom-light: #8761ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f9c",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 261.6,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3885,
    "c": 0.18415,
    "h": 291.7
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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