#4C1F82#4C1F82

#4C1F82 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.155 H 299.1°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#4C1F82
RGBrgb(76, 31, 130)
HSLhsl(267, 61%, 32%)
HSVhsv(267, 76%, 51%)
CMYKcmyk(41.5%, 76.2%, 0%, 49%)
CIE-LABlab(24.09, 41.64, -47.37)
CIE-LCHlch(24.09, 63.07, 311.32°)
OKLaboklab(36.43% 0.0755 -0.1354)
OKLCHoklch(36.43% 0.155 299.1)
XYZxyz(7.4987, 4.1281, 21.5165)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1F82 #55821F
analogous
#1F2382 #4C1F82 #7E1F82
triadic
#4C1F82 #824C1F #1F824C
tetradic
#4C1F82 #821F23 #55821F #1F827E
square
#4C1F82 #821F23 #55821F #1F827E
split-complementary
#4C1F82 #827E1F #23821F
monochromatic
#12071F #2F1351 #4C1F82 #692BB3 #8748D3

Accessibility & contrast

On white

11.50
#4C1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4C1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1F82
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1F82#FFFFFF#000000##FFFFFF
##4C1F821.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#3F384F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c1f82;
/* rgb */ color: rgb(76, 31, 130);
/* oklch */ color: oklch(36.4% 0.155 299.1);
Tailwind
colors: {
  custom: {
    50: '#845fa7',
    500: '#4c1f82',
    950: '#000000',
  },
}
SCSS
$custom: #4c1f82;
$custom-light: #845fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1f82",
  "rgb": {
    "r": 76,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 267.273,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36429,
    "c": 0.15498,
    "h": 299.1
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#4C1F82
secondary
#83B548
accent
#E5439B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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