#4C1B8B#4C1B8B

#4C1B8B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.169 H 296.9°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4C1B8B
RGBrgb(76, 27, 139)
HSLhsl(266, 67%, 33%)
HSVhsv(266, 81%, 55%)
CMYKcmyk(45.3%, 80.6%, 0%, 45.5%)
CIE-LABlab(24.27, 45.82, -52.72)
CIE-LCHlch(24.27, 69.85, 311.00°)
OKLaboklab(36.81% 0.0765 -0.151)
OKLCHoklch(36.81% 0.169 296.9)
XYZxyz(8.0314, 4.1843, 24.8056)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B8B #5A8B1B
analogous
#1B228B #4C1B8B #841B8B
triadic
#4C1B8B #8B4C1B #1B8B4C
tetradic
#4C1B8B #8B1B22 #5A8B1B #1B8B84
square
#4C1B8B #8B1B22 #5A8B1B #1B8B84
split-complementary
#4C1B8B #8B841B #228B1B
monochromatic
#140725 #301158 #4C1B8B #6825BE #8745DB

Accessibility & contrast

On white

11.43
#4C1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B8B
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B8B#FFFFFF#000000##FFFFFF
##4C1B8B1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#3B3A53
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1b8b;
/* rgb */ color: rgb(76, 27, 139);
/* oklch */ color: oklch(36.8% 0.169 296.9);
Tailwind
colors: {
  custom: {
    50: '#855eae',
    500: '#4c1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b8b;
$custom-light: #855eae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b8b",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 266.25,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36807,
    "c": 0.1693,
    "h": 296.9
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#4C1B8B
secondary
#88BC45
accent
#EA3D9F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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