#4C1F9E#4C1F9E

#4C1F9E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.186 H 291.2°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4C1F9E
RGBrgb(76, 31, 158)
HSLhsl(261, 67%, 37%)
HSVhsv(261, 80%, 62%)
CMYKcmyk(51.9%, 80.4%, 0%, 38%)
CIE-LABlab(26.69, 49.16, -60.46)
CIE-LCHlch(26.69, 77.93, 309.12°)
OKLaboklab(39.05% 0.0674 -0.1737)
OKLCHoklch(39.05% 0.186 291.2)
XYZxyz(9.6403, 4.9847, 32.7953)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F9E #719E1F
analogous
#1F319E #4C1F9E #8C1F9E
triadic
#4C1F9E #9E4C1F #1F9E4C
tetradic
#4C1F9E #9E1F31 #719E1F #1F9E8C
square
#4C1F9E #9E1F31 #719E1F #1F9E8C
split-complementary
#4C1F9E #9E8C1F #319E1F
monochromatic
#1B0B38 #33156B #4C1F9E #6529D1 #8859DE

Accessibility & contrast

On white

10.52
#4C1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4C1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F9E
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F9E#FFFFFF#000000##FFFFFF
##4C1F9E1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#2F445F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c1f9e;
/* rgb */ color: rgb(76, 31, 158);
/* oklch */ color: oklch(39.0% 0.186 291.2);
Tailwind
colors: {
  custom: {
    50: '#8761bc',
    500: '#4c1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f9e;
$custom-light: #8761bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f9e",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 261.26,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39045,
    "c": 0.18636,
    "h": 291.2
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#4C1F9E
secondary
#9CC256
accent
#EA3EAD
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4C1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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