#4C2786#4C2786

#4C2786 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.150 H 296.3°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#4C2786
RGBrgb(76, 39, 134)
HSLhsl(263, 55%, 34%)
HSVhsv(263, 71%, 53%)
CMYKcmyk(43.3%, 70.9%, 0%, 47.5%)
CIE-LABlab(25.89, 38.64, -46.95)
CIE-LCHlch(25.89, 60.81, 309.46°)
OKLaboklab(37.81% 0.0664 -0.1342)
OKLCHoklch(37.81% 0.15 296.3)
XYZxyz(8.0080, 4.7086, 23.0366)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2786 #618627
analogous
#273286 #4C2786 #7C2786
triadic
#4C2786 #864C27 #27864C
tetradic
#4C2786 #862732 #618627 #27867C
square
#4C2786 #862732 #618627 #27867C
split-complementary
#4C2786 #867C27 #328627
monochromatic
#160B27 #311957 #4C2786 #6735B5 #8759CF

Accessibility & contrast

On white

10.81
#4C2786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4C2786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2786
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2786#FFFFFF#000000##FFFFFF
##4C27861.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#3D3E53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c2786;
/* rgb */ color: rgb(76, 39, 134);
/* oklch */ color: oklch(37.8% 0.150 296.3);
Tailwind
colors: {
  custom: {
    50: '#8364aa',
    500: '#4c2786',
    950: '#000000',
  },
}
SCSS
$custom: #4c2786;
$custom-light: #8364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2786",
  "rgb": {
    "r": 76,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 263.368,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37811,
    "c": 0.14972,
    "h": 296.3
  },
  "luminance": 0.04709
}

Semantic roles & 50–950 ramp

primary
#4C2786
secondary
#8FB455
accent
#DE4AA4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2786

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

Preview Lab → · Contrast checker → · Palette generator →

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