#4C1F88#4C1F88

#4C1F88 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.162 H 297.2°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#4C1F88
RGBrgb(76, 31, 136)
HSLhsl(266, 63%, 33%)
HSVhsv(266, 77%, 53%)
CMYKcmyk(44.1%, 77.2%, 0%, 46.7%)
CIE-LABlab(24.62, 43.24, -50.27)
CIE-LCHlch(24.62, 66.31, 310.70°)
OKLaboklab(36.97% 0.074 -0.1439)
OKLCHoklch(36.97% 0.162 297.2)
XYZxyz(7.9132, 4.2939, 23.6997)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F88 #5B881F
analogous
#1F2788 #4C1F88 #801F88
triadic
#4C1F88 #884C1F #1F884C
tetradic
#4C1F88 #881F27 #5B881F #1F8880
square
#4C1F88 #881F27 #5B881F #1F8880
split-complementary
#4C1F88 #88801F #27881F
monochromatic
#140824 #301456 #4C1F88 #682ABA #874BD6

Accessibility & contrast

On white

11.30
#4C1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1F88
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F88#FFFFFF#000000##FFFFFF
##4C1F881.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#3C3B52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1f88;
/* rgb */ color: rgb(76, 31, 136);
/* oklch */ color: oklch(37.0% 0.162 297.2);
Tailwind
colors: {
  custom: {
    50: '#8460ac',
    500: '#4c1f88',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f88;
$custom-light: #8460ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f88",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 265.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36966,
    "c": 0.16178,
    "h": 297.2
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#4C1F88
secondary
#89B94A
accent
#E642A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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