#4C1B9F#4C1B9F

#4C1B9F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.191 H 291.4°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#4C1B9F
RGBrgb(76, 27, 159)
HSLhsl(262, 71%, 36%)
HSVhsv(262, 83%, 62%)
CMYKcmyk(52.2%, 83%, 0%, 37.6%)
CIE-LABlab(26.23, 51.08, -61.84)
CIE-LCHlch(26.23, 80.20, 309.56°)
OKLaboklab(38.75% 0.0698 -0.1777)
OKLCHoklch(38.75% 0.191 291.4)
XYZxyz(9.6286, 4.8232, 33.2178)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B9F #6E9F1B
analogous
#1B2C9F #4C1B9F #8E1B9F
triadic
#4C1B9F #9F4C1B #1B9F4C
tetradic
#4C1B9F #9F1B2C #6E9F1B #1B9F8E
square
#4C1B9F #9F1B2C #6E9F1B #1B9F8E
split-complementary
#4C1B9F #9F8E1B #2C9F1B
monochromatic
#1A0936 #33126B #4C1B9F #6524D3 #8853E2

Accessibility & contrast

On white

10.69
#4C1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4C1B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B9F
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B9F#FFFFFF#000000##FFFFFF
##4C1B9F1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#2F435F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c1b9f;
/* rgb */ color: rgb(76, 27, 159);
/* oklch */ color: oklch(38.8% 0.191 291.4);
Tailwind
colors: {
  custom: {
    50: '#885fbd',
    500: '#4c1b9f',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b9f;
$custom-light: #885fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b9f",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 262.273,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38752,
    "c": 0.19092,
    "h": 291.4
  },
  "luminance": 0.04824
}

Semantic roles & 50–950 ramp

primary
#4C1B9F
secondary
#9AC551
accent
#EE3AAB
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4C1B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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