#4C1F94#4C1F94

#4C1F94 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.175 H 293.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#4C1F94
RGBrgb(76, 31, 148)
HSLhsl(263, 65%, 35%)
HSVhsv(263, 79%, 58%)
CMYKcmyk(48.6%, 79.1%, 0%, 42%)
CIE-LABlab(25.73, 46.46, -55.91)
CIE-LCHlch(25.73, 72.70, 309.73°)
OKLaboklab(38.08% 0.0706 -0.1604)
OKLCHoklch(38.08% 0.175 293.7)
XYZxyz(8.8143, 4.6543, 28.4452)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F94 #67941F
analogous
#1F2C94 #4C1F94 #861F94
triadic
#4C1F94 #944C1F #1F944C
tetradic
#4C1F94 #941F2C #67941F #1F9486
square
#4C1F94 #941F2C #67941F #1F9486
split-complementary
#4C1F94 #94861F #2C941F
monochromatic
#180A2F #321461 #4C1F94 #662AC7 #8753DB

Accessibility & contrast

On white

10.88
#4C1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4C1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F94
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F94#FFFFFF#000000##FFFFFF
##4C1F941.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#364059
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c1f94;
/* rgb */ color: rgb(76, 31, 148);
/* oklch */ color: oklch(38.1% 0.175 293.7);
Tailwind
colors: {
  custom: {
    50: '#8660b4',
    500: '#4c1f94',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f94;
$custom-light: #8660b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f94",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 263.077,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3808,
    "c": 0.17525,
    "h": 293.7
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#4C1F94
secondary
#94BE51
accent
#E83FA7
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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