#4C2D87#4C2D87

#4C2D87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.143 H 294.7°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#4C2D87
RGBrgb(76, 45, 135)
HSLhsl(261, 50%, 35%)
HSVhsv(261, 67%, 53%)
CMYKcmyk(43.7%, 66.7%, 0%, 47.1%)
CIE-LABlab(27.19, 35.57, -45.46)
CIE-LCHlch(27.19, 57.72, 308.04°)
OKLaboklab(38.77% 0.0596 -0.1298)
OKLCHoklch(38.77% 0.143 294.7)
XYZxyz(8.2909, 5.1623, 23.4766)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D87 #68872D
analogous
#2D3B87 #4C2D87 #792D87
triadic
#4C2D87 #874C2D #2D874C
tetradic
#4C2D87 #872D3B #68872D #2D8779
square
#4C2D87 #872D3B #68872D #2D8779
split-complementary
#4C2D87 #87792D #3B872D
monochromatic
#180E2B #321E59 #4C2D87 #663CB5 #8763CB

Accessibility & contrast

On white

10.33
#4C2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4C2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D87
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D87#FFFFFF#000000##FFFFFF
##4C2D871.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#3C4256
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2d87;
/* rgb */ color: rgb(76, 45, 135);
/* oklch */ color: oklch(38.8% 0.143 294.7);
Tailwind
colors: {
  custom: {
    50: '#8368ab',
    500: '#4c2d87',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d87;
$custom-light: #8368ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d87",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 260.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38773,
    "c": 0.14282,
    "h": 294.7
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

primary
#4C2D87
secondary
#95B25E
accent
#DA4EAA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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