#4C2B87#4C2B87

#4C2B87 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.146 H 295.1°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4C2B87
RGBrgb(76, 43, 135)
HSLhsl(262, 52%, 35%)
HSVhsv(262, 68%, 53%)
CMYKcmyk(43.7%, 68.1%, 0%, 47.1%)
CIE-LABlab(26.77, 36.72, -46.14)
CIE-LCHlch(26.77, 58.97, 308.51°)
OKLaboklab(38.47% 0.0619 -0.1318)
OKLCHoklch(38.47% 0.146 295.1)
XYZxyz(8.2164, 5.0133, 23.4517)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2B87 #66872B
analogous
#2B3887 #4C2B87 #7A2B87
triadic
#4C2B87 #874C2B #2B874C
tetradic
#4C2B87 #872B38 #66872B #2B877A
square
#4C2B87 #872B38 #66872B #2B877A
split-complementary
#4C2B87 #877A2B #38872B
monochromatic
#180D2A #321C59 #4C2B87 #663AB5 #8760CC

Accessibility & contrast

On white

10.49
#4C2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4C2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2B87
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2B87#FFFFFF#000000##FFFFFF
##4C2B871.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#3C4155
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2b87;
/* rgb */ color: rgb(76, 43, 135);
/* oklch */ color: oklch(38.5% 0.146 295.1);
Tailwind
colors: {
  custom: {
    50: '#8367ab',
    500: '#4c2b87',
    950: '#000000',
  },
}
SCSS
$custom: #4c2b87;
$custom-light: #8367ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2b87",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 261.522,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38471,
    "c": 0.14559,
    "h": 295.1
  },
  "luminance": 0.05014
}

Semantic roles & 50–950 ramp

primary
#4C2B87
secondary
#93B25B
accent
#DB4DA8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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