#4C1F92#4C1F92

#4C1F92 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.173 H 294.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4C1F92
RGBrgb(76, 31, 146)
HSLhsl(263, 65%, 35%)
HSVhsv(263, 79%, 57%)
CMYKcmyk(47.9%, 78.8%, 0%, 42.7%)
CIE-LABlab(25.54, 45.93, -54.99)
CIE-LCHlch(25.54, 71.64, 309.87°)
OKLaboklab(37.89% 0.0712 -0.1577)
OKLCHoklch(37.89% 0.173 294.3)
XYZxyz(8.6574, 4.5915, 27.6187)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F92 #65921F
analogous
#1F2C92 #4C1F92 #861F92
triadic
#4C1F92 #924C1F #1F924C
tetradic
#4C1F92 #921F2C #65921F #1F9286
square
#4C1F92 #921F2C #65921F #1F9286
split-complementary
#4C1F92 #92861F #2C921F
monochromatic
#170A2D #321460 #4C1F92 #662AC4 #8751DA

Accessibility & contrast

On white

10.95
#4C1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4C1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F92
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F92#FFFFFF#000000##FFFFFF
##4C1F921.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E95
Deuteranopia (green-blind)
#003B90
Tritanopia (blue-blind)
#373F58
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c1f92;
/* rgb */ color: rgb(76, 31, 146);
/* oklch */ color: oklch(37.9% 0.173 294.3);
Tailwind
colors: {
  custom: {
    50: '#8660b3',
    500: '#4c1f92',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f92;
$custom-light: #8660b3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f92",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 263.478,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37891,
    "c": 0.17302,
    "h": 294.3
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#4C1F92
secondary
#92BD50
accent
#E840A6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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