#4C2A88#4C2A88

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

Color values

HEX#4C2A88
RGBrgb(76, 42, 136)
HSLhsl(262, 53%, 35%)
HSVhsv(262, 69%, 53%)
CMYKcmyk(44.1%, 69.1%, 0%, 46.7%)
CIE-LABlab(26.65, 37.56, -46.97)
CIE-LCHlch(26.65, 60.14, 308.65°)
OKLaboklab(38.41% 0.0628 -0.1342)
OKLCHoklch(38.41% 0.148 295.1)
XYZxyz(8.2512, 4.9698, 23.8123)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A88 #66882A
analogous
#2A3788 #4C2A88 #7B2A88
triadic
#4C2A88 #884C2A #2A884C
tetradic
#4C2A88 #882A37 #66882A #2A887B
square
#4C2A88 #882A37 #66882A #2A887B
split-complementary
#4C2A88 #887B2A #37882A
monochromatic
#180D2A #321C59 #4C2A88 #6638B7 #875FCE

Accessibility & contrast

On white

10.53
#4C2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A88
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A88#FFFFFF#000000##FFFFFF
##4C2A881.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2a88;
/* rgb */ color: rgb(76, 42, 136);
/* oklch */ color: oklch(38.4% 0.148 295.1);
Tailwind
colors: {
  custom: {
    50: '#8366ab',
    500: '#4c2a88',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a88;
$custom-light: #8366ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a88",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 261.702,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38407,
    "c": 0.1482,
    "h": 295.1
  },
  "luminance": 0.0497
}

Semantic roles & 50–950 ramp

primary
#4C2A88
secondary
#93B35B
accent
#DC4CA8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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