#4C1B7D#4C1B7D

#4C1B7D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.154 H 301.5°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#4C1B7D
RGBrgb(76, 27, 125)
HSLhsl(270, 64%, 30%)
HSVhsv(270, 78%, 49%)
CMYKcmyk(39.2%, 78.4%, 0%, 51%)
CIE-LABlab(23.00, 42.20, -45.99)
CIE-LCHlch(23.00, 62.41, 312.54°)
OKLaboklab(35.53% 0.0805 -0.1313)
OKLCHoklch(35.53% 0.154 301.5)
XYZxyz(7.0732, 3.8010, 19.7591)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B7D #4C7D1B
analogous
#1B1B7D #4C1B7D #7D1B7D
triadic
#4C1B7D #7D4C1B #1B7D4C
tetradic
#4C1B7D #7D1B1B #4C7D1B #1B7D7D
square
#4C1B7D #7D1B1B #4C7D1B #1B7D7D
split-complementary
#4C1B7D #7D7D1B #1B7D1B
monochromatic
#0F0519 #2D104B #4C1B7D #6B26AF #893DD5

Accessibility & contrast

On white

11.93
#4C1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4C1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B7D
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B7D#FFFFFF#000000##FFFFFF
##4C1B7D1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#41344B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c1b7d;
/* rgb */ color: rgb(76, 27, 125);
/* oklch */ color: oklch(35.5% 0.154 301.5);
Tailwind
colors: {
  custom: {
    50: '#835da3',
    500: '#4c1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b7d;
$custom-light: #835da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b7d",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 270,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35528,
    "c": 0.154,
    "h": 301.5
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

primary
#4C1B7D
secondary
#7AB143
accent
#E74094
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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