#4C2885#4C2885

#4C2885 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.147 H 296.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4C2885
RGBrgb(76, 40, 133)
HSLhsl(263, 54%, 34%)
HSVhsv(263, 70%, 52%)
CMYKcmyk(42.9%, 69.9%, 0%, 47.8%)
CIE-LABlab(26.00, 37.82, -46.14)
CIE-LCHlch(26.00, 59.66, 309.34°)
OKLaboklab(37.87% 0.0655 -0.1318)
OKLCHoklch(37.87% 0.147 296.4)
XYZxyz(7.9718, 4.7474, 22.6821)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2885 #618528
analogous
#283385 #4C2885 #7B2885
triadic
#4C2885 #854C28 #28854C
tetradic
#4C2885 #852833 #618528 #28857B
square
#4C2885 #852833 #618528 #28857B
split-complementary
#4C2885 #857B28 #338528
monochromatic
#160C27 #311A56 #4C2885 #6736B4 #875ACD

Accessibility & contrast

On white

10.77
#4C2885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4C2885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2885
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2885#FFFFFF#000000##FFFFFF
##4C28851.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#3D3E53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2885;
/* rgb */ color: rgb(76, 40, 133);
/* oklch */ color: oklch(37.9% 0.147 296.4);
Tailwind
colors: {
  custom: {
    50: '#8365a9',
    500: '#4c2885',
    950: '#000000',
  },
}
SCSS
$custom: #4c2885;
$custom-light: #8365a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2885",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 263.226,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37867,
    "c": 0.14717,
    "h": 296.4
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#4C2885
secondary
#8FB356
accent
#DD4BA4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2885

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

Preview Lab → · Contrast checker → · Palette generator →

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