#4C1B82#4C1B82

#4C1B82 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.159 H 299.8°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4C1B82
RGBrgb(76, 27, 130)
HSLhsl(269, 66%, 31%)
HSVhsv(269, 79%, 51%)
CMYKcmyk(41.5%, 79.2%, 0%, 49%)
CIE-LABlab(23.45, 43.49, -48.42)
CIE-LCHlch(23.45, 65.08, 311.92°)
OKLaboklab(35.98% 0.0792 -0.1384)
OKLCHoklch(35.98% 0.159 299.8)
XYZxyz(7.4007, 3.9320, 21.4838)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B82 #51821B
analogous
#1B1D82 #4C1B82 #7F1B82
triadic
#4C1B82 #824C1B #1B824C
tetradic
#4C1B82 #821B1D #51821B #1B827F
square
#4C1B82 #821B1D #51821B #1B827F
split-complementary
#4C1B82 #827F1B #1D821B
monochromatic
#11061D #2E104F #4C1B82 #6A26B5 #8840D7

Accessibility & contrast

On white

11.76
#4C1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4C1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B82
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B82#FFFFFF#000000##FFFFFF
##4C1B821.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#3F364E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1b82;
/* rgb */ color: rgb(76, 27, 130);
/* oklch */ color: oklch(36.0% 0.159 299.8);
Tailwind
colors: {
  custom: {
    50: '#845da7',
    500: '#4c1b82',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b82;
$custom-light: #845da7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b82",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 268.544,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35976,
    "c": 0.15948,
    "h": 299.8
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#4C1B82
secondary
#7FB643
accent
#E93F98
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #4C1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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