#4C2A8F#4C2A8F

#4C2A8F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.157 H 293.2°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4C2A8F
RGBrgb(76, 42, 143)
HSLhsl(260, 55%, 36%)
HSVhsv(260, 71%, 56%)
CMYKcmyk(46.9%, 70.6%, 0%, 43.9%)
CIE-LABlab(27.23, 39.57, -50.37)
CIE-LCHlch(27.23, 64.05, 308.15°)
OKLaboklab(39% 0.0617 -0.1442)
OKLCHoklch(39% 0.157 293.2)
XYZxyz(8.7650, 5.1753, 26.5184)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2A8F #6D8F2A
analogous
#2A3B8F #4C2A8F #7F2A8F
triadic
#4C2A8F #8F4C2A #2A8F4C
tetradic
#4C2A8F #8F2A3B #6D8F2A #2A8F7F
square
#4C2A8F #8F2A3B #6D8F2A #2A8F7F
split-complementary
#4C2A8F #8F7F2A #3B8F2A
monochromatic
#1A0E30 #331C60 #4C2A8F #6538BE #8862D1

Accessibility & contrast

On white

10.32
#4C2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4C2A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2A8F
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2A8F#FFFFFF#000000##FFFFFF
##4C2A8F1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#384359
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2a8f;
/* rgb */ color: rgb(76, 42, 143);
/* oklch */ color: oklch(39.0% 0.157 293.2);
Tailwind
colors: {
  custom: {
    50: '#8466b1',
    500: '#4c2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #4c2a8f;
$custom-light: #8466b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2a8f",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 260.198,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39004,
    "c": 0.15686,
    "h": 293.2
  },
  "luminance": 0.05176
}

Semantic roles & 50–950 ramp

primary
#4C2A8F
secondary
#99B75E
accent
#DE4AAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4C2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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