#4C2986#4C2986

#4C2986 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.147 H 295.9°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#4C2986
RGBrgb(76, 41, 134)
HSLhsl(263, 53%, 34%)
HSVhsv(263, 69%, 53%)
CMYKcmyk(43.3%, 69.4%, 0%, 47.5%)
CIE-LABlab(26.28, 37.55, -46.31)
CIE-LCHlch(26.28, 59.62, 309.04°)
OKLaboklab(38.1% 0.0642 -0.1323)
OKLCHoklch(38.1% 0.147 295.9)
XYZxyz(8.0754, 4.8434, 23.0590)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2986 #638629
analogous
#293486 #4C2986 #7B2986
triadic
#4C2986 #864C29 #29864C
tetradic
#4C2986 #862934 #638629 #29867B
square
#4C2986 #862934 #638629 #29867B
split-complementary
#4C2986 #867B29 #348629
monochromatic
#170C28 #311B57 #4C2986 #6737B5 #875CCD

Accessibility & contrast

On white

10.67
#4C2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4C2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2986
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2986#FFFFFF#000000##FFFFFF
##4C29861.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#3D3F54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2986;
/* rgb */ color: rgb(76, 41, 134);
/* oklch */ color: oklch(38.1% 0.147 295.9);
Tailwind
colors: {
  custom: {
    50: '#8365aa',
    500: '#4c2986',
    950: '#000000',
  },
}
SCSS
$custom: #4c2986;
$custom-light: #8365aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2986",
  "rgb": {
    "r": 76,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 262.581,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38095,
    "c": 0.14706,
    "h": 295.9
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#4C2986
secondary
#91B358
accent
#DD4BA6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2986

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

Preview Lab → · Contrast checker → · Palette generator →

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