#4C1F89#4C1F89

#4C1F89 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.163 H 296.9°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#4C1F89
RGBrgb(76, 31, 137)
HSLhsl(265, 63%, 33%)
HSVhsv(265, 77%, 54%)
CMYKcmyk(44.5%, 77.4%, 0%, 46.3%)
CIE-LABlab(24.71, 43.51, -50.75)
CIE-LCHlch(24.71, 66.85, 310.61°)
OKLaboklab(37.06% 0.0737 -0.1453)
OKLCHoklch(37.06% 0.163 296.9)
XYZxyz(7.9846, 4.3225, 24.0757)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F89 #5C891F
analogous
#1F2789 #4C1F89 #811F89
triadic
#4C1F89 #894C1F #1F894C
tetradic
#4C1F89 #891F27 #5C891F #1F8981
square
#4C1F89 #891F27 #5C891F #1F8981
split-complementary
#4C1F89 #89811F #27891F
monochromatic
#150825 #301457 #4C1F89 #682ABB #874CD6

Accessibility & contrast

On white

11.26
#4C1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4C1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F89
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F89#FFFFFF#000000##FFFFFF
##4C1F891.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#3C3B53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4c1f89;
/* rgb */ color: rgb(76, 31, 137);
/* oklch */ color: oklch(37.1% 0.163 296.9);
Tailwind
colors: {
  custom: {
    50: '#8460ac',
    500: '#4c1f89',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f89;
$custom-light: #8460ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f89",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 265.472,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37057,
    "c": 0.1629,
    "h": 296.9
  },
  "luminance": 0.04323
}

Semantic roles & 50–950 ramp

primary
#4C1F89
secondary
#8AB94B
accent
#E642A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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