#4C1F95#4C1F95

#4C1F95 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.176 H 293.5°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#4C1F95
RGBrgb(76, 31, 149)
HSLhsl(263, 66%, 35%)
HSVhsv(263, 79%, 58%)
CMYKcmyk(49%, 79.2%, 0%, 41.6%)
CIE-LABlab(25.82, 46.73, -56.37)
CIE-LCHlch(25.82, 73.22, 309.66°)
OKLaboklab(38.17% 0.0703 -0.1618)
OKLCHoklch(38.17% 0.176 293.5)
XYZxyz(8.8938, 4.6861, 28.8638)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F95 #68951F
analogous
#1F2D95 #4C1F95 #871F95
triadic
#4C1F95 #954C1F #1F954C
tetradic
#4C1F95 #951F2D #68951F #1F9587
square
#4C1F95 #951F2D #68951F #1F9587
split-complementary
#4C1F95 #95871F #2D951F
monochromatic
#180A30 #321462 #4C1F95 #662AC8 #8753DB

Accessibility & contrast

On white

10.84
#4C1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1F95
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F95#FFFFFF#000000##FFFFFF
##4C1F951.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#35405A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c1f95;
/* rgb */ color: rgb(76, 31, 149);
/* oklch */ color: oklch(38.2% 0.176 293.5);
Tailwind
colors: {
  custom: {
    50: '#8660b5',
    500: '#4c1f95',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f95;
$custom-light: #8660b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f95",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 262.881,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38175,
    "c": 0.17636,
    "h": 293.5
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#4C1F95
secondary
#95BF51
accent
#E93FA8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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