#4C1B83#4C1B83

#4C1B83 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.161 H 299.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#4C1B83
RGBrgb(76, 27, 131)
HSLhsl(268, 66%, 31%)
HSVhsv(268, 79%, 51%)
CMYKcmyk(42%, 79.4%, 0%, 48.6%)
CIE-LABlab(23.54, 43.74, -48.91)
CIE-LCHlch(23.54, 65.62, 311.81°)
OKLaboklab(36.07% 0.0789 -0.1398)
OKLCHoklch(36.07% 0.161 299.4)
XYZxyz(7.4681, 3.9590, 21.8390)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B83 #52831B
analogous
#1B1E83 #4C1B83 #801B83
triadic
#4C1B83 #834C1B #1B834C
tetradic
#4C1B83 #831B1E #52831B #1B8380
square
#4C1B83 #831B1E #52831B #1B8380
split-complementary
#4C1B83 #83801B #1E831B
monochromatic
#11061E #2F1150 #4C1B83 #6925B6 #8841D8

Accessibility & contrast

On white

11.72
#4C1B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1B83
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B83#FFFFFF#000000##FFFFFF
##4C1B831.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003781
Tritanopia (blue-blind)
#3F374E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1b83;
/* rgb */ color: rgb(76, 27, 131);
/* oklch */ color: oklch(36.1% 0.161 299.4);
Tailwind
colors: {
  custom: {
    50: '#845da8',
    500: '#4c1b83',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b83;
$custom-light: #845da8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b83",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 268.269,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36067,
    "c": 0.16057,
    "h": 299.4
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#4C1B83
secondary
#80B643
accent
#E93F99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C1B83

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

Preview Lab → · Contrast checker → · Palette generator →

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