#4C1FA5#4C1FA5

#4C1FA5 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.194 H 289.6°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4C1FA5
RGBrgb(76, 31, 165)
HSLhsl(260, 68%, 38%)
HSVhsv(260, 81%, 65%)
CMYKcmyk(53.9%, 81.2%, 0%, 35.3%)
CIE-LABlab(27.39, 51.06, -63.57)
CIE-LCHlch(27.39, 81.53, 308.77°)
OKLaboklab(39.74% 0.0651 -0.1828)
OKLCHoklch(39.74% 0.194 289.6)
XYZxyz(10.2600, 5.2326, 36.0594)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1FA5 #78A51F
analogous
#1F35A5 #4C1FA5 #8F1FA5
triadic
#4C1FA5 #A54C1F #1FA54C
tetradic
#4C1FA5 #A51F35 #78A51F #1FA58F
square
#4C1FA5 #A51F35 #78A51F #1FA58F
split-complementary
#4C1FA5 #A58F1F #35A51F
monochromatic
#1D0C3E #341571 #4C1FA5 #642AD7 #8A5EE1

Accessibility & contrast

On white

10.26
#4C1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4C1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1FA5
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1FA5#FFFFFF#000000##FFFFFF
##4C1FA51.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#294763
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4c1fa5;
/* rgb */ color: rgb(76, 31, 165);
/* oklch */ color: oklch(39.7% 0.194 289.6);
Tailwind
colors: {
  custom: {
    50: '#8861c1',
    500: '#4c1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4c1fa5;
$custom-light: #8861c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1fa5",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 260.149,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39737,
    "c": 0.19407,
    "h": 289.6
  },
  "luminance": 0.05233
}

Semantic roles & 50–950 ramp

primary
#4C1FA5
secondary
#A1C55B
accent
#EB3DB1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4C1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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