#4C1F96#4C1F96

#4C1F96 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.177 H 293.2°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#4C1F96
RGBrgb(76, 31, 150)
HSLhsl(263, 66%, 35%)
HSVhsv(263, 79%, 59%)
CMYKcmyk(49.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(25.92, 47.00, -56.83)
CIE-LCHlch(25.92, 73.75, 309.59°)
OKLaboklab(38.27% 0.07 -0.1631)
OKLCHoklch(38.27% 0.177 293.2)
XYZxyz(8.9740, 4.7182, 29.2861)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F96 #69961F
analogous
#1F2D96 #4C1F96 #871F96
triadic
#4C1F96 #964C1F #1F964C
tetradic
#4C1F96 #961F2D #69961F #1F9687
square
#4C1F96 #961F2D #69961F #1F9687
split-complementary
#4C1F96 #96871F #2D961F
monochromatic
#190A31 #321563 #4C1F96 #6629C9 #8754DC

Accessibility & contrast

On white

10.80
#4C1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4C1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F96
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F96#FFFFFF#000000##FFFFFF
##4C1F961.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#35415A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c1f96;
/* rgb */ color: rgb(76, 31, 150);
/* oklch */ color: oklch(38.3% 0.177 293.2);
Tailwind
colors: {
  custom: {
    50: '#8660b6',
    500: '#4c1f96',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f96;
$custom-light: #8660b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f96",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 262.689,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38271,
    "c": 0.17749,
    "h": 293.2
  },
  "luminance": 0.04718
}

Semantic roles & 50–950 ramp

primary
#4C1F96
secondary
#96BF52
accent
#E93FA9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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