#4C1B8E#4C1B8E

#4C1B8E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.173 H 296.0°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#4C1B8E
RGBrgb(76, 27, 142)
HSLhsl(266, 68%, 33%)
HSVhsv(266, 81%, 56%)
CMYKcmyk(46.5%, 81%, 0%, 44.3%)
CIE-LABlab(24.55, 46.61, -54.12)
CIE-LCHlch(24.55, 71.42, 310.74°)
OKLaboklab(37.09% 0.0756 -0.1551)
OKLCHoklch(37.09% 0.173 296)
XYZxyz(8.2536, 4.2732, 25.9759)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B8E #5D8E1B
analogous
#1B248E #4C1B8E #851B8E
triadic
#4C1B8E #8E4C1B #1B8E4C
tetradic
#4C1B8E #8E1B24 #5D8E1B #1B8E85
square
#4C1B8E #8E1B24 #5D8E1B #1B8E85
split-complementary
#4C1B8E #8E851B #248E1B
monochromatic
#150727 #30115B #4C1B8E #6825C1 #8747DC

Accessibility & contrast

On white

11.32
#4C1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B8E
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B8E#FFFFFF#000000##FFFFFF
##4C1B8E1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#393C55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c1b8e;
/* rgb */ color: rgb(76, 27, 142);
/* oklch */ color: oklch(37.1% 0.173 296.0);
Tailwind
colors: {
  custom: {
    50: '#855eb0',
    500: '#4c1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b8e;
$custom-light: #855eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b8e",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 265.565,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37091,
    "c": 0.17256,
    "h": 296
  },
  "luminance": 0.04273
}

Semantic roles & 50–950 ramp

primary
#4C1B8E
secondary
#8BBE47
accent
#EB3DA1
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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