#4C1F90#4C1F90

#4C1F90 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.171 H 294.8°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#4C1F90
RGBrgb(76, 31, 144)
HSLhsl(264, 65%, 34%)
HSVhsv(264, 78%, 56%)
CMYKcmyk(47.2%, 78.5%, 0%, 43.5%)
CIE-LABlab(25.35, 45.39, -54.05)
CIE-LCHlch(25.35, 70.58, 310.02°)
OKLaboklab(37.7% 0.0717 -0.155)
OKLCHoklch(37.7% 0.171 294.8)
XYZxyz(8.5032, 4.5299, 26.8065)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F90 #63901F
analogous
#1F2B90 #4C1F90 #851F90
triadic
#4C1F90 #904C1F #1F904C
tetradic
#4C1F90 #901F2B #63901F #1F9085
square
#4C1F90 #901F2B #63901F #1F9085
split-complementary
#4C1F90 #90851F #2B901F
monochromatic
#17092B #31145E #4C1F90 #672AC2 #8750D9

Accessibility & contrast

On white

11.02
#4C1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4C1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F90
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F90#FFFFFF#000000##FFFFFF
##4C1F901.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#003A8E
Tritanopia (blue-blind)
#383E57
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c1f90;
/* rgb */ color: rgb(76, 31, 144);
/* oklch */ color: oklch(37.7% 0.171 294.8);
Tailwind
colors: {
  custom: {
    50: '#8560b1',
    500: '#4c1f90',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f90;
$custom-light: #8560b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f90",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 263.894,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37703,
    "c": 0.17078,
    "h": 294.8
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#4C1F90
secondary
#91BC4E
accent
#E840A5
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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