#4C1B85#4C1B85

#4C1B85 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.163 H 298.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#4C1B85
RGBrgb(76, 27, 133)
HSLhsl(268, 66%, 31%)
HSVhsv(268, 80%, 52%)
CMYKcmyk(42.9%, 79.7%, 0%, 47.8%)
CIE-LABlab(23.72, 44.26, -49.87)
CIE-LCHlch(23.72, 66.68, 311.59°)
OKLaboklab(36.25% 0.0783 -0.1427)
OKLCHoklch(36.25% 0.163 298.8)
XYZxyz(7.6050, 4.0137, 22.5598)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B85 #54851B
analogous
#1B1F85 #4C1B85 #811B85
triadic
#4C1B85 #854C1B #1B854C
tetradic
#4C1B85 #851B1F #54851B #1B8581
square
#4C1B85 #851B1F #54851B #1B8581
split-complementary
#4C1B85 #85811B #1F851B
monochromatic
#12061F #2F1152 #4C1B85 #6925B8 #8842D9

Accessibility & contrast

On white

11.65
#4C1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4C1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B85
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B85#FFFFFF#000000##FFFFFF
##4C1B851.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#3E384F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c1b85;
/* rgb */ color: rgb(76, 27, 133);
/* oklch */ color: oklch(36.3% 0.163 298.8);
Tailwind
colors: {
  custom: {
    50: '#845ea9',
    500: '#4c1b85',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b85;
$custom-light: #845ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b85",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 267.736,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3625,
    "c": 0.16275,
    "h": 298.8
  },
  "luminance": 0.04014
}

Semantic roles & 50–950 ramp

primary
#4C1B85
secondary
#82B844
accent
#E93F9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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